i3 shortcuts for session options

This commit is contained in:
Pim Kunis 2023-02-26 14:00:36 +01:00
parent 68a19a552a
commit f9feabc2d2
4 changed files with 22 additions and 3 deletions

5
roles/i3/files/scripts/lock.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
SCREEN_RESOLUTION="$(xdpyinfo | grep dimensions | cut -d' ' -f7)"
BGCOLOR="000000"
convert "/home/pim/Pictures/wallpapers/orphans.png" -gravity Center -background \#$BGCOLOR -resize "$SCREEN_RESOLUTION" RGB:- | i3lock --raw "$SCREEN_RESOLUTION":rgb -c $BGCOLOR -i /dev/stdin --nofork