Update dot_config/i3/config
Add dot_config/i3/executable_set_volume.sh
This commit is contained in:
parent
f4034e9f39
commit
d9e91d35ff
2 changed files with 4 additions and 2 deletions
|
@ -58,8 +58,8 @@ exec --no-startup-id feh --bg-scale ~/.config/i3/i3-wall.png
|
|||
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.config/i3/set_volume.sh "+5%" && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id ~/.config/i3/set_volume.sh "-5%" && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
|
||||
|
|
2
dot_config/i3/executable_set_volume.sh
Normal file
2
dot_config/i3/executable_set_volume.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
pactl set-sink-volume @DEFAULT_SINK@ $1 && $send_volume_notif notify-send "Volume" -h int:value:"$(pactl get-sink-volume @DEFAULT_SINK@ | cut -d ' ' -f6 | cut -d '%' -f1)"
|
Loading…
Reference in a new issue