Add notification to volume keybinds

main
ekkie 1 year ago
parent 199e841239
commit 709ac54b8c

@ -89,9 +89,9 @@ bindsym $mod+Shift+q exec "i3-nagbar -t warning -m 'Really log out?' -B 'Yes, ex
# Media Keys
#
bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 5
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5
bindsym XF86AudioMute exec --no-startup-id pamixer -t
bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 5 && notify-send -h int:value:"$(pamixer --get-volume)" -h string:synchronous:volume "Volume: $(pamixer --get-volume-human)"
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5 && notify-send -h int:value:"$(pamixer --get-volume)" -h string:synchronous:volume "Volume: $(pamixer --get-volume-human)"
bindsym XF86AudioMute exec --no-startup-id pamixer -t && notify-send -h int:value:"$(pamixer --get-volume)" -h string:synchronous:volume "Volume: $(pamixer --get-volume-human)"
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
bindsym XF86AudioStop exec --no-startup-id playerctl stop
@ -107,7 +107,7 @@ bindsym $mod+Return exec alacritty
bindsym $mod+Print exec --no-startup-id maim pix/screenshots/$(date +%Y-%m-%dT%H-%M-%S).png
bindsym $mod+Shift+Print exec --no-startup-id maim -su pix/screenshots/$(date +%Y-%m-%dT%H-%M-%S).png
bindsym $mod+space exec --no-startup-id rofi -show-icons -show drun
bindsym $mod+Scroll_Lock exec --no-startup-id "pkill -u $USER -USR1 dunst; i3lock -c 000000 -fn; pkill -u $USER -USR2 dunst"
bindsym $mod+Control+l exec --no-startup-id "pkill -u $USER -USR1 dunst; i3lock -c 000000 -fn; pkill -u $USER -USR2 dunst"
#
@ -133,10 +133,8 @@ bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# move workspaces
bindsym $mod+Control+$left move workspace to output left
bindsym $mod+Control+$right move workspace to output right
bindsym $mod+Control+$up move workspace to output up
bindsym $mod+Control+$down move workspace to output down
bindsym $mod+Control+comma move workspace to output left
bindsym $mod+Control+period move workspace to output right
# split toggle
bindsym $mod+v split toggle

Loading…
Cancel
Save