aboutsummaryrefslogtreecommitdiff
path: root/config/i3/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'config/i3/scripts')
-rwxr-xr-xconfig/i3/scripts/keyboard_layout2
-rwxr-xr-xconfig/i3/scripts/keyboard_switch14
-rwxr-xr-xconfig/i3/scripts/shutdown13
3 files changed, 0 insertions, 29 deletions
diff --git a/config/i3/scripts/keyboard_layout b/config/i3/scripts/keyboard_layout
deleted file mode 100755
index 90b82e4..0000000
--- a/config/i3/scripts/keyboard_layout
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-setxkbmap -query | awk '/layout/{print $2}'
diff --git a/config/i3/scripts/keyboard_switch b/config/i3/scripts/keyboard_switch
deleted file mode 100755
index 7ba27f8..0000000
--- a/config/i3/scripts/keyboard_switch
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-active=`~/.config/i3/scripts/keyboard_layout`
-
-case "$active" in
- us)
- setxkbmap cz_qwerty
- ;;
- cz_qwerty)
- setxkbmap us
- ;;
-esac
-
-# Send update to i3blocks
-pkill -RTMIN+11 i3blocks
diff --git a/config/i3/scripts/shutdown b/config/i3/scripts/shutdown
deleted file mode 100755
index 62f6ae1..0000000
--- a/config/i3/scripts/shutdown
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-export SUDO_ASKPASS=/tmp/shutdown-askpass.sh
-
-
-echo '#!/bin/sh
-echo "SETDESC Please enter password to shutdown system
-SETPROMPT Password:
-SETTITLE Sudo password for system shutdown
-GETPIN" | pinentry | grep -E "^D " | sed "s/^D //"' > $SUDO_ASKPASS
-chmod +x $SUDO_ASKPASS
-
-sudo -A shutdown -h now