first commit

This commit is contained in:
Jesús
2019-04-17 16:37:04 -05:00
commit d2a3fd287c
7 changed files with 1179 additions and 0 deletions

12
scripts/i3display.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
IN="LVDS1"
EXT="VGA1"
if ( xrandr | grep -q "$EXT disconnected")
then
xrandr --output $IN --auto --output $EXT --off
else
xrandr --output $IN --auto --primary --output $EXT --auto --right-of $IN
## Only VGA
# xrandr --output $IN --mode 1366x768
# xrandr --output $EXT --mode 1366x768 --right-of $IN
fi

12
scripts/i3lock.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
revert() {
rm /tmp/*screen*.png
xset dpms 0 0 0
}
trap revert HUP INT TERM
xset +dpms dpms 0 0 5
scrot -d 1 /tmp/locking_screen.png
convert -blur 0x8 /tmp/locking_screen.png /tmp/screen_blur.png
convert -composite /tmp/screen_blur.png ~/.config/i3/images/imagelock.png -gravity South -geometry -20x1200 /tmp/screen.png
i3lock -i /tmp/screen.png
revert "$@"