feat: add swayosc

This commit is contained in:
Leon Schwarzäugl 2025-04-03 00:20:06 +02:00
parent 14de7e4f7e
commit bd95ef4c9b
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
3 changed files with 65 additions and 47 deletions

View file

@ -10488,6 +10488,12 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
group-by=category group-by=category
''; '';
}; };
services.swayosd = {
enable = true;
topMargin = 0.5;
};
} }
#+end_src #+end_src
@ -10720,13 +10726,18 @@ Currently, I am too lazy to explain every option here, but most of it is very se
"${modifier}+Print" = "exec screenshare"; "${modifier}+Print" = "exec screenshare";
# exec swaymsg move workspace to "$(swaymsg -t get_outputs | jq '[.[] | select(.active == true)] | .[(map(.focused) | index(true) + 1) % length].name')" # exec swaymsg move workspace to "$(swaymsg -t get_outputs | jq '[.[] | select(.active == true)] | .[(map(.focused) | index(true) + 1) % length].name')"
# "XF86AudioRaiseVolume" = "exec pa 5%"; # "XF86AudioRaiseVolume" = "exec pa 5%";
"XF86AudioRaiseVolume" = "exec pamixer -i 5"; # "XF86AudioRaiseVolume" = "exec pamixer -i 5";
"XF86AudioRaiseVolume" = "exec swayosd-client --output-volume raise";
# "XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%"; # "XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
"XF86AudioLowerVolume" = "exec pamixer -d 5"; # "XF86AudioLowerVolume" = "exec pamixer -d 5";
"XF86AudioLowerVolume" = "exec swayosd-client --output-volume lower";
# "XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle"; # "XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
"XF86AudioMute" = "exec pamixer -t"; # "XF86AudioMute" = "exec pamixer -t";
"XF86MonBrightnessUp" = "exec brightnessctl set +5%"; "XF86AudioMute" = "exec swayosd-client --output-volume mute-toggle";
"XF86MonBrightnessDown" = "exec brightnessctl set 5%-"; # "XF86MonBrightnessUp" = "exec brightnessctl set +5%";
"XF86MonBrightnessUp" = "exec swayosd-client --brightness raise";
# "XF86MonBrightnessDown" = "exec brightnessctl set 5%-";
"XF86MonBrightnessDown" = "exec swayosd-client --brightness lower";
"XF86Display" = "exec wl-mirror eDP-1"; "XF86Display" = "exec wl-mirror eDP-1";
} }
config.swarselsystems.keybindings; config.swarselsystems.keybindings;
@ -10928,6 +10939,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
exec kanshi exec kanshi
exec_always kill -1 $(pidof kanshi) exec_always kill -1 $(pidof kanshi)
exec swayosd-server
bindswitch --locked lid:on exec kanshictl switch lidclosed bindswitch --locked lid:on exec kanshictl switch lidclosed
bindswitch --locked lid:off exec kanshictl switch lidopen bindswitch --locked lid:off exec kanshictl switch lidopen

View file

@ -28,4 +28,10 @@ _:
group-by=category group-by=category
''; '';
}; };
services.swayosd = {
enable = true;
topMargin = 0.5;
};
} }