Added dunst

This commit is contained in:
TuDatTr
2019-08-14 22:05:24 +02:00
parent b861b39678
commit 352b894ce2
14 changed files with 389 additions and 10 deletions

View File

@@ -26,6 +26,7 @@ def pixelate():
Image.NEAREST)
image.save('/tmp/i3lock.png')
os.chmod('/tmp/i3lock.png', 0o666)
print('pixelate: {}'.format(time.time() - pxl_time))

View File

@@ -0,0 +1,19 @@
#!/bin/bash
KBD="";
oldKBD="";
while :
do
oldKBD="$KBD";
case "$(xset -q | grep -A 0 'LED' | cut -c59-67)" in
"00000000")
KBD="English (US)" ;;
"00001000")
KBD="Deutsch" ;;
*) KBD="unknown" ;;
esac
if [ "$KBD" != "$oldKBD" ]; then
notify-send "$KBD";
fi
sleep 1;
done

2
config/.scripts/lock.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
/usr/bin/python /home/tuan/.scripts/i3lock.py;