Add suspend
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
|
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
|
||||||
|
|
||||||
|
|
||||||
indicate_hidden = no
|
indicate_hidden = no
|
||||||
stack_duplicates = false
|
stack_duplicates = false
|
||||||
hide_duplicate_count = true
|
hide_duplicate_count = true
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ bindsym $mod+c exec urxvt -e python -q
|
|||||||
bindsym $mod+Shift+p exec ~/scripts/music.sh toggle
|
bindsym $mod+Shift+p exec ~/scripts/music.sh toggle
|
||||||
bindsym $mod+Shift+n exec ~/scripts/music.sh next
|
bindsym $mod+Shift+n exec ~/scripts/music.sh next
|
||||||
|
|
||||||
|
bindsym $mod+Shift+s exec ~/scripts/suspend.sh
|
||||||
|
|
||||||
bindsym $mod+h focus left
|
bindsym $mod+h focus left
|
||||||
bindsym $mod+j focus down
|
bindsym $mod+j focus down
|
||||||
bindsym $mod+k focus up
|
bindsym $mod+k focus up
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
[mpd]
|
[mpd]
|
||||||
command=mpc current
|
command=echo "MPD: $(mpc current)"
|
||||||
interval=5
|
interval=5
|
||||||
signal=2
|
signal=2
|
||||||
|
|
||||||
[volume]
|
[volume]
|
||||||
command=pamixer --get-volume
|
command=echo "VOL: $(pamixer --get-volume)"
|
||||||
interval=once
|
interval=once
|
||||||
signal=1
|
signal=1
|
||||||
|
|
||||||
[battery]
|
[battery]
|
||||||
command=cat /sys/class/power_supply/BAT0/capacity
|
command=echo "BAT: $(cat /sys/class/power_supply/BAT0/capacity)"
|
||||||
interval=5
|
interval=5
|
||||||
|
|
||||||
[time]
|
[time]
|
||||||
command=date '+%m.%d %H:%M'
|
command=echo "DATE: $(date '+%m.%d %H:%M')"
|
||||||
interval=5
|
interval=5
|
||||||
|
|||||||
6
scripts/lock.sh
Executable file
6
scripts/lock.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
scrot -m -z /tmp/lock.png
|
||||||
|
convert /tmp/lock.png -paint 1 /tmp/lock.png
|
||||||
|
i3lock -e -f -c 000000 -i /tmp/lock.png
|
||||||
|
|
||||||
5
scripts/suspend.sh
Executable file
5
scripts/suspend.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
~/scripts/lock.sh
|
||||||
|
systemctl suspend
|
||||||
|
|
||||||
Reference in New Issue
Block a user