Switch audio keys to use swayosd

This commit is contained in:
Evie Litherland-Smith 2023-10-12 16:24:55 +01:00
parent 0537485007
commit 2a7d1e0126
2 changed files with 14 additions and 6 deletions

View file

@ -131,14 +131,21 @@ in ''
# Misc useful binds # Misc useful binds
bind=,Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" bind=,Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"
bind=,XF86Calculator,exec,pkill anyrun || anyrun bind=,XF86Calculator,exec,pkill anyrun || anyrun
# Sound # Sound
bindl=,XF86AudioMute,exec,${pkgs.pamixer}/bin/pamixer -t bindl=,XF86AudioMute,exec,${pkgs.swayosd}/bin/swayosd --output-volume=mute-toggle
bindl=,XF86AudioMicMute,exec,${pkgs.pamixer}/bin/pamixer --default-source -t bindl=,XF86AudioMicMute,exec,${pkgs.swayosd}/bin/swayosd --input-volume=mute-toggle
bindle=,XF86AudioRaiseVolume,exec,${pkgs.pamixer}/bin/pamixer -i 5 bindle=,XF86AudioRaiseVolume,exec,${pkgs.swayosd}/bin/swayosd --output-volume=+5
bindle=,XF86AudioLowerVolume,exec,${pkgs.pamixer}/bin/pamixer -d 5 bindle=,XF86AudioLowerVolume,exec,${pkgs.swayosd}/bin/swayosd --output-volume=-5
# Brightness # Brightness
bindle=,XF86MonBrightnessUp,exec,${pkgs.brightnessctl}/bin/brightnessctl s +5% bindle=,XF86MonBrightnessUp,exec,${pkgs.brightnessctl}/bin/brightnessctl s +5%
bindle=,XF86MonBrightnessDown,exec,${pkgs.brightnessctl}/bin/brightnessctl s 5%- bindle=,XF86MonBrightnessDown,exec,${pkgs.brightnessctl}/bin/brightnessctl s 5%-
# # Brightness
# bindle=,XF86MonBrightnessUp,exec,${pkgs.swayosd}/bin/swayosd --brightness=+5
# bindle=,XF86MonBrightnessDown,exec,${pkgs.swayosd}/bin/swayosd --brightness=-5
# Playback # Playback
bindl=,XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause bindl=,XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause
bindl=,XF86AudioStop,exec,${pkgs.playerctl}/bin/playerctl play-pause bindl=,XF86AudioStop,exec,${pkgs.playerctl}/bin/playerctl play-pause
@ -155,6 +162,7 @@ in ''
bind = SUPER SHIFT, J, movewindow, d bind = SUPER SHIFT, J, movewindow, d
# Window rules # Window rules
windowrule = xray 1,(alacritty)
windowrule = float,(org.kde.polkit-kde-authentication-agent-1) windowrule = float,(org.kde.polkit-kde-authentication-agent-1)
windowrule = center,(org.kde.polkit-kde-authentication-agent-1) windowrule = center,(org.kde.polkit-kde-authentication-agent-1)
windowrule = pin,(org.kde.polkit-kde-authentication-agent-1) windowrule = pin,(org.kde.polkit-kde-authentication-agent-1)

View file

@ -24,7 +24,7 @@
disable_splash_rendering = true disable_splash_rendering = true
} }
monitor=eDP-1,preferred,0x190,1.5 monitor=eDP-1,preferred,0x190,1.00
monitor=desc:Iiyama North America PLB2403WS 0574281251316,preferred,1280x190,1 monitor=desc:Iiyama North America PLB2403WS 0574281251316,preferred,1920x190,1
''; '';
} }