From bca2085eedfddda25f706f66f141a2b298051b53 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 20 Mar 2019 22:22:00 +0300 Subject: i3 work with volnoti to show volume indicator --- .config/i3/config##desktop.Linux.Maus | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.config/i3/config##desktop.Linux.Maus') diff --git a/.config/i3/config##desktop.Linux.Maus b/.config/i3/config##desktop.Linux.Maus index 043eff8..8edaad2 100644 --- a/.config/i3/config##desktop.Linux.Maus +++ b/.config/i3/config##desktop.Linux.Maus @@ -57,11 +57,10 @@ bindsym $mod+p exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -optio bindsym Print exec flameshot gui # media keys -bindsym $mod+m exec "pactl set-sink-mute @DEFAULT_SINK@ toggle" -bindsym $mod+Up exec "pactl set-sink-volume @DEFAULT_SINK@ +5%" -bindsym $mod+Down exec "pactl set-sink-volume @DEFAULT_SINK@ -5%" +bindsym $mod+Up exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" +bindsym $mod+Down exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" +bindsym $mod+m exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" bindsym $mod+q exec mpc toggle -#bindsym XF86AudioStop exec mpc stop bindsym $mod+Left exec /home/yigit/bin/mpvPrev bindsym $mod+Right exec mpc next -- cgit v1.2.3-70-g09d2