more config

This commit is contained in:
chloe 2024-10-22 10:54:12 +02:00
parent 0035f0f1fa
commit f740a9542f
8 changed files with 90 additions and 21 deletions

View file

@ -180,8 +180,8 @@ input * {
# If there are multiple scratchpad windows, this command cycles through them.
#bindsym $mod+minus scratchpad show
# useful shortcuts
bindsym Print exec grim -g $(slurp) | wl-copy
bindsym Ctrl+Print exec grim $screenshot_folder/$(date +'%s_grim.png')
bindsym Print exec ./screen_and_copy.sh area
bindsym Ctrl+Print exec ./screen_and_copy.sh output
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 1.2
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.2

View file

@ -0,0 +1,7 @@
if [[ "$1" = "area" ]]; then
SCREENPATH=$(grimshot save area)
elif [ "$1" = "output" ]; then
SCREENPATH=$(grimshot save output)
fi
cat $SCREENPATH | wl-copy -t image/png

View file

@ -1,15 +1,37 @@
{
"layer": "top",
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [],
"modules-right": ["wireplumber","bluetooth", "clock"],
"clock": {
"format-alt": "{:%a, %d. %b %H:%M}"
},
"wireplumber": {
"format": "{volume}%",
"format-muted": "",
"max-volume": 120,
"scroll-step": 0.2
}
"layer": "top",
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["wireplumber", "mpris"],
"modules-right": ["bluetooth", "clock", "privacy"],
"clock": {
"format-alt": "{:%a, %d. %b %H:%M}"
},
"wireplumber": {
"format": " {volume}%",
"format-muted": "",
"max-volume": 120,
"scroll-step": 0.2
},
"privacy": {
"icon-spacing": 4,
"icon-size": 18,
"transition-duration": 250,
"modules": [
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-out",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-in",
"tooltip": true,
"tooltip-icon-size": 24
}
]
},
}

View file

@ -0,0 +1,19 @@
* {
font-family: "CodeNewRoman Nerd Font";
font-weight: bold;
font-size: 14px;
color: #fff;
}
window#waybar {
background-color: rgba(254, 254, 254, 0.6);
}
#clock, #battery, #cpu, #wireplumber, #bluetooth {
padding: 0 12px;
}
#workspaces button.focused {
background-color: #7b002c;
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, osConfig, inputs, ... }:
{ config, pkgs, lib, osConfig, inputs, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
@ -86,6 +86,12 @@
inputs.anyrun.homeManagerModules.default
];
programs.direnv = {
enable = true;
enableBashIntegration = true; # see note on other shells below
nix-direnv.enable = true;
};
programs.anyrun = {
enable = true;
config = {