1
0
Fork 0

Update dot_config/i3/config

Add dot_config/i3/executable_set_volume.sh
This commit is contained in:
Florian RICHER 2022-09-03 21:50:49 +02:00
parent f4034e9f39
commit d9e91d35ff
2 changed files with 4 additions and 2 deletions

View file

@ -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

View 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)"