diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/.local/bin/chardetect | 8 | ||||
-rwxr-xr-x | bin/.local/bin/shut | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bin/.local/bin/chardetect b/bin/.local/bin/chardetect new file mode 100755 index 0000000..627b836 --- /dev/null +++ b/bin/.local/bin/chardetect | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/usr/bin/python3.6 | ||
2 | # -*- coding: utf-8 -*- | ||
3 | import re | ||
4 | import sys | ||
5 | from chardet.cli.chardetect import main | ||
6 | if __name__ == '__main__': | ||
7 | sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | ||
8 | sys.exit(main()) | ||
diff --git a/bin/.local/bin/shut b/bin/.local/bin/shut index dc391e1..c4ea84a 100755 --- a/bin/.local/bin/shut +++ b/bin/.local/bin/shut | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Say goodbye") | 3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara") |
4 | 4 | ||
5 | case $RET in | 5 | case $RET in |
6 | shutdown) sudo poweroff ;; | 6 | shutdown) sudo poweroff ;; |