Add suspend

This commit is contained in:
olari
2018-08-01 21:39:52 +03:00
parent d1c30790a4
commit 3dc49949d4
6 changed files with 17 additions and 8 deletions

View File

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

View File

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

View File

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

@@ -0,0 +1,5 @@
#!/bin/bash
~/scripts/lock.sh
systemctl suspend

3
todo
View File

@@ -1,6 +1,3 @@
more useful bar elements
rrs client (+ youtube) rrs client (+ youtube)
calcurse calcurse
mutt mutt
ranger config
laptop features (sleep, lock)