diff --git a/config/Modus b/config/Modus index 3b91e9e0..61c20402 160000 --- a/config/Modus +++ b/config/Modus @@ -1 +1 @@ -Subproject commit 3b91e9e040825d9ac45002f81d9ca62cd8b5a82f +Subproject commit 61c20402bf241cd6302d9fae03234f048dc5b018 diff --git a/config/hypr/configs/keybinds.lua b/config/hypr/configs/keybinds.lua index cfbd48d0..17275702 100644 --- a/config/hypr/configs/keybinds.lua +++ b/config/hypr/configs/keybinds.lua @@ -144,18 +144,31 @@ hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), { mouse = true }) hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), { mouse = true }) -- Audio keys +local fabricSend = "uwsm app -- fabric-cli exec modus " for key, cmd in pairs({ AudioRaiseVolume = "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+", AudioLowerVolume = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-", AudioMute = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", AudioMicMute = "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle", }) do - hl.bind("XF86" .. key, hl.dsp.exec_cmd(cmd), { locked = true, repeating = true }) + hl.bind( + "XF86" .. key, + hl.dsp.exec_cmd(cmd .. " && " .. fabricSend .. '"osd_show_audio()"'), + { locked = true, repeating = true } + ) end -- brightness -hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true, repeating = true }) -hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true, repeating = true }) +hl.bind( + "XF86MonBrightnessUp", + hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+ && " .. fabricSend .. '"osd_show_brightness()"'), + { locked = true, repeating = true } +) +hl.bind( + "XF86MonBrightnessDown", + hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%- && " .. fabricSend .. '"osd_show_brightness()"'), + { locked = true, repeating = true } +) hl.bind("xf86Sleep", hl.dsp.exec_cmd("systemctl suspend"), { locked = true }) -- Playerctl