[i3] Add bin utilities from Tondorf

This commit is contained in:
Sebastian Schulze 2018-02-19 15:58:45 +01:00
parent 398cbe1622
commit d7c1d57151
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
6 changed files with 27 additions and 9 deletions

5
home/bin/i3-blur-lock Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
scrot '/home/bascht/.lockbg.png' -e 'convert -resize 20% -fill "#282828" -colorize 50% -blur 0x3 -resize 500% $f /home/bascht/.lockbg.png'
convert -gravity center -composite /home/bascht/.lockbg.png /home/bascht/Pictures/Wallpapers/lock.png /tmp/lockfinal.png
i3lock -i /tmp/lockfinal.png $1

View File

@ -0,0 +1,3 @@
#!/bin/bash
i3-blur-lock
sleep 1; xset dpms force off

View File

@ -0,0 +1,3 @@
#!/bin/bash
i3-blur-lock & sleep 5
systemctl suspend

3
home/bin/i3-dropshot Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
drop $(i3-screenshot -s)

View File

@ -1,13 +1,13 @@
#!/bin/bash
if pgrep plasma
then
WINDOWED=""
elif pgrep awesome
then
WINDOWED=""
else
WINDOWED="-fullscreen -normal-window"
fi
# if pgrep plasma
# then
# WINDOWED=""
# elif pgrep awesome
# then
# WINDOWED=""
# else
# WINDOWED="-fullscreen -normal-window"
# fi
exec rofi -show combi $WINDOWED

4
home/bin/i3-screenshot Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
escrotum '/home/bascht/Pictures/Screenshots/Screenshot-%Y-%m-%d-%H%M%S-$wx$h.png' $1