From b0d3e273319530510f215de4565e3c97bc9c6508 Mon Sep 17 00:00:00 2001 From: Dario Ernst Date: Mon, 16 Jul 2018 20:08:48 +0200 Subject: [PATCH] cheza specific changes --- i3/config | 11 ++++++++--- lock.sh | 2 +- susp.sh | 3 ++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/i3/config b/i3/config index dec4133..cef15c1 100644 --- a/i3/config +++ b/i3/config @@ -56,9 +56,13 @@ bindsym $mod+Delete exec scrot -s # kill focused window bindsym $mod+Shift+x kill -bindsym Print exec pactl set-sink-volume 0 -5% ; exec pactl set-sink-volume 1 -5% -bindsym Scroll_Lock exec pactl set-sink-volume 0 +5% ; exec pactl set-sink-volume 1 +5% -bindsym Pause exec pactl set-sink-mute 0 toggle ; exec pactl set-sink-mute 1 toggle +bindsym Scroll_Lock exec "sh -c 'for i in $(pacmd list-sinks | grep index | cut -d: -f2) ; do pactl set-sink-volume $i +5% ; done'" +bindsym Print exec "sh -c 'for i in $(pacmd list-sinks | grep index | cut -d: -f2) ; do pactl set-sink-volume $i -5% ; done'" +bindsym Pause exec "sh -c 'for i in $(pacmd list-sinks | grep index | cut -d: -f2) ; do pactl set-sink-mute $i toggle ; done'" + +bindsym XF86AudioRaiseVolume exec "sh -c 'for i in $(pacmd list-sinks | grep index | cut -d: -f2) ; do pactl set-sink-volume $i +5% ; done'" +bindsym XF86AudioLowerVolume exec "sh -c 'for i in $(pacmd list-sinks | grep index | cut -d: -f2) ; do pactl set-sink-volume $i -5% ; done'" +bindsym XF86AudioMute exec "sh -c 'for i in $(pacmd list-sinks | grep index | cut -d: -f2) ; do pactl set-sink-mute $i toggle ; done'" # start dmenu (a program launcher) #bindsym $mod+a exec dmenu_run @@ -164,6 +168,7 @@ bindsym $mod+F4 exec sh ~/config/susp.sh # TODO: debug bindsym $mod+F12 exec xfce4-terminal --drop-down +bindsym $mod+y exec xfce4-terminal --drop-down #for_window [class="(?i)xfce4-terminal"] floating enable #for_window [class="(?i)xfce4-terminal"] border none diff --git a/lock.sh b/lock.sh index 49d42ac..76df3bd 100755 --- a/lock.sh +++ b/lock.sh @@ -8,7 +8,7 @@ trap revert HUP INT TERM xset dpms 25 25 25 scrot /tmp/screen.png -convert /tmp/screen.png -scale 5% -scale 2000% /tmp/screen.png +convert /tmp/screen.png -scale 3% -scale 3366% /tmp/screen.png i3lock -n -f -p win -i /tmp/screen.png revert diff --git a/susp.sh b/susp.sh index 923edd3..68c2991 100755 --- a/susp.sh +++ b/susp.sh @@ -12,7 +12,8 @@ convert /tmp/screen.png -scale 5% -scale 2000% /tmp/screen.png i3lock -f -p win -i /tmp/screen.png PID=$! -systemctl suspend +#systemctl suspend +echo mem | sudo tee /sys/power/state wait $PID