diff --git a/.config/hypr/keybinds.conf b/.config/hypr/keybinds.conf index abb3bef..20843aa 100644 --- a/.config/hypr/keybinds.conf +++ b/.config/hypr/keybinds.conf @@ -32,8 +32,6 @@ bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 -# Example special workspace (scratchpad) - # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 @@ -46,7 +44,7 @@ bindm = $mainMod, mouse:273, resizewindow bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle -bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle +bindel = SUPER, M, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+ bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%- diff --git a/.config/waybar/config b/.config/waybar/config index 264ebec..2d2d7a5 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -14,7 +14,8 @@ "modules-right": [ "tray", - "pulseaudio", + "pulseaudio", + "custom/micmute", "battery", "custom/power" ], @@ -79,5 +80,12 @@ "tooltip": false, "on-click": "wlogout" }, + + "custom/micmute": { + "exec": "bash -c 'wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | grep -q MUTED && echo \"\" || echo \"\"'", + "interval": 1, + "tooltip": true, + "on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle" + } } diff --git a/.config/waybar/style.css b/.config/waybar/style.css index c933310..f20f0f0 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -103,7 +103,7 @@ } -#tray, #battery, #pulseaudio, #custom-power { +#tray, #battery, #pulseaudio, #custom-power, #custom-micmute { background-color: @Buttons; color: @Text; border-radius: 10px;