Added dunst
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
19
config/.scripts/language_switch.sh
Executable file
19
config/.scripts/language_switch.sh
Executable 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
2
config/.scripts/lock.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
/usr/bin/python /home/tuan/.scripts/i3lock.py;
|
||||
Reference in New Issue
Block a user