summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2020-03-25 06:32:02 +0000
committerShubham Saini <shubham6405@gmail.com>2020-03-25 06:32:02 +0000
commitf4d7ef953338b2e1c750c7e9c4be0d3d9f3c7cac (patch)
tree7c22a410207752f18c65bc280515e82db772f335 /bin
parent809c4d7d729bd27659fcd35cd0642857724dd03a (diff)
cmus
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 ;;