From 175941c565b8848862fe483162f5a22e538efbc1 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 20 Sep 2022 14:18:47 +0200 Subject: [PATCH] dumpyourvms, ryzensun: be less noisy with sound and backlight % notifications. Use waybar to show this info instead --- .../.config/sway/config.d/input-defaults.conf | 14 +++++++------- .../.config/sway/config.d/input-defaults.conf | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hosts/dumpyourvms/.config/sway/config.d/input-defaults.conf b/hosts/dumpyourvms/.config/sway/config.d/input-defaults.conf index 4f16a4bb..83d3b2cb 100644 --- a/hosts/dumpyourvms/.config/sway/config.d/input-defaults.conf +++ b/hosts/dumpyourvms/.config/sway/config.d/input-defaults.conf @@ -18,17 +18,17 @@ input "type:touchpad" { #bindsym XF86TouchpadToggle exec $HOME/Workspace/ben/toggletouchpad.sh # toggle touchpad # Screen brightness controls -bindsym XF86MonBrightnessUp exec "brightnessctl -d gmux_backlight set +10%; notify-send $(brightnessctl -d gmux_backlight i | awk '/Current/ {print $4}')" -bindsym XF86MonBrightnessDown exec "brightnessctl -d gmux_backlight set 10%-; notify-send $(brightnessctl -d gmux_backlight i | awk '/Current/ { print $4}')" +bindsym XF86MonBrightnessUp exec "brightnessctl -d gmux_backlight set +10%" +bindsym XF86MonBrightnessDown exec "brightnessctl -d gmux_backlight set 10%-" # Keyboard backlight brightness controls -bindsym XF86KbdBrightnessDown exec "brightnessctl -d smc::kbd_backlight set 10%-; notify-send $(brightnessctl -d smc::kbd_backlight i | awk '/Current/ { print $4}')" -bindsym XF86KbdBrightnessUp exec "brightnessctl -d smc::kbd_backlight set +10%; notify-send $(brightnessctl -d smc::kbd_backlight i | awk '/Current/ { print $4}')" +bindsym XF86KbdBrightnessDown exec "brightnessctl -d smc::kbd_backlight set 10%-" +bindsym XF86KbdBrightnessUp exec "brightnessctl -d smc::kbd_backlight set +10%" # Pulse Audio controls -bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 && notify-send 'Vol. up' #increase sound volume -bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 && notify-send 'Vol. down' #decrease sound volume -bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && notify-send 'Mute sound' # mute sound +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 #increase sound volume +bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 #decrease sound volume +bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound # Media player controls bindsym XF86AudioPlay exec "playerctl play-pause; notify-send 'Play/Pause'" bindsym XF86AudioNext exec "playerctl next; notify-send 'Next'" diff --git a/hosts/ryzensun/.config/sway/config.d/input-defaults.conf b/hosts/ryzensun/.config/sway/config.d/input-defaults.conf index 6889258e..fa180d3a 100644 --- a/hosts/ryzensun/.config/sway/config.d/input-defaults.conf +++ b/hosts/ryzensun/.config/sway/config.d/input-defaults.conf @@ -16,17 +16,17 @@ input "type:touchpad" { #bindsym XF86TouchpadToggle exec $HOME/Workspace/ben/toggletouchpad.sh # toggle touchpad # Screen brightness controls -bindsym XF86MonBrightnessUp exec "brightnessctl -d intel_backlight set +10%; notify-send $(brightnessctl -d intel_backlight i | awk '/Current/ {print $4}')" -bindsym XF86MonBrightnessDown exec "brightnessctl -d intel_backlight set 10%-; notify-send $(brightnessctl -d intel_backlight i | awk '/Current/ { print $4}')" +bindsym XF86MonBrightnessUp exec "brightnessctl -d intel_backlight set +10%" +bindsym XF86MonBrightnessDown exec "brightnessctl -d intel_backlight set 10%-" # Keyboard backlight brightness controls -bindsym XF86KbdBrightnessDown exec "brightnessctl -d smc::kbd_backlight set 10%-; notify-send $(brightnessctl -d smc::kbd_backlight i | awk '/Current/ { print $4}')" -bindsym XF86KbdBrightnessUp exec "brightnessctl -d smc::kbd_backlight set +10%; notify-send $(brightnessctl -d smc::kbd_backlight i | awk '/Current/ { print $4}')" +bindsym XF86KbdBrightnessDown exec "brightnessctl -d smc::kbd_backlight set 10%-" +bindsym XF86KbdBrightnessUp exec "brightnessctl -d smc::kbd_backlight set +10%" # Pulse Audio controls -bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 && notify-send 'Vol. up' #increase sound volume -bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 && notify-send 'Vol. down' #decrease sound volume -bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && notify-send 'Mute sound' # mute sound +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 #increase sound volume +bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 #decrease sound volume +bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound # Media player controls bindsym XF86AudioPlay exec "playerctl play-pause; notify-send 'Play/Pause'" bindsym XF86AudioNext exec "playerctl next; notify-send 'Next'"