diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-03-25 06:32:02 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-03-25 06:32:02 +0000 |
commit | f4d7ef953338b2e1c750c7e9c4be0d3d9f3c7cac (patch) | |
tree | 7c22a410207752f18c65bc280515e82db772f335 /bin | |
parent | 809c4d7d729bd27659fcd35cd0642857724dd03a (diff) |
cmus
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 ;; |