aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2024-05-21 00:07:57 -0600
committerjason2024-05-21 10:13:13 -0600
commitdc7393eb1058e017bc5f285f077f1a4f4346f139 (patch)
tree57144567f866c0385e8f7a1ff0571e2e180c07cd
parent6b0e4b8f8d45d0e46ca894dbd518be4596edf4e6 (diff)
downloaddotfiles-dc7393eb1058e017bc5f285f077f1a4f4346f139.tar.gz
dotfiles-dc7393eb1058e017bc5f285f077f1a4f4346f139.zip
sway fix volume controls
-rw-r--r--sway/.config/sway/config6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/.config/sway/config b/sway/.config/sway/config
index 8e3716f..5d07b19 100644
--- a/sway/.config/sway/config
+++ b/sway/.config/sway/config
@@ -229,6 +229,10 @@ bindsym $mod+r mode "resize"
229# bindsym XF86AudioRaiseVolume exec ~/.config/sway/scripts/volume_up.sh 229# bindsym XF86AudioRaiseVolume exec ~/.config/sway/scripts/volume_up.sh
230# bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $( pactl list short sinks | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,' | head -n 1 ) + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' > $SWAYSOCK.wob 230# bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $( pactl list short sinks | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,' | head -n 1 ) + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' > $SWAYSOCK.wob
231 231
232bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_SINK@ 5%-
233bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_SINK@ 5%+
234bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_SINK@ toggle
235
232############################################################################### 236###############################################################################
233# Status Bar 237# Status Bar
234 238
@@ -259,7 +263,7 @@ for_window [class="jetbrains-idea" title="win0"] floating enable;
259for_window [class="^jetbrains-idea"][window_type="floating_con"] focus 263for_window [class="^jetbrains-idea"][window_type="floating_con"] focus
260for_window [instance="sun-awt-X11-XWindowPeer"] border pixel 0 264for_window [instance="sun-awt-X11-XWindowPeer"] border pixel 0
261 265
262# Fix the Firefox cursor theme 266# Fix the Firefox cursor theme (when cursor doesn't change for resize,hover,etc)
263# exec_always gsettings set org.gnome.desktop.interface cursor-theme "Pop" 267# exec_always gsettings set org.gnome.desktop.interface cursor-theme "Pop"
264 268
265# Fix giant mic sharing indicator by making it small and sticky until it's 269# Fix giant mic sharing indicator by making it small and sticky until it's