summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/.local/bin/chardetect8
-rwxr-xr-xbin/.local/bin/shut2
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 -*-
3import re
4import sys
5from chardet.cli.chardetect import main
6if __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
3RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Say goodbye") 3RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara")
4 4
5case $RET in 5case $RET in
6 shutdown) sudo poweroff ;; 6 shutdown) sudo poweroff ;;