first commit
This commit is contained in:
12
scripts/i3display.sh
Normal file
12
scripts/i3display.sh
Normal 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
12
scripts/i3lock.sh
Normal 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 "$@"
|
||||
Reference in New Issue
Block a user