From f4d7ef953338b2e1c750c7e9c4be0d3d9f3c7cac Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Wed, 25 Mar 2020 12:02:02 +0530 Subject: cmus --- bin/.local/bin/chardetect | 8 ++++++++ bin/.local/bin/shut | 2 +- polybar/.config/polybar/config | 2 +- ranger/.config/ranger/rc.conf | 3 +-- sxhkd/.config/sxhkd/sxhkdrc | 4 ++-- x/.Xresources | 12 +----------- 6 files changed, 14 insertions(+), 17 deletions(-) create mode 100755 bin/.local/bin/chardetect 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 @@ +#!/usr/bin/python3.6 +# -*- coding: utf-8 -*- +import re +import sys +from chardet.cli.chardetect import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + 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 @@ #!/bin/bash -RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Say goodbye") +RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara") case $RET in shutdown) sudo poweroff ;; diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 9040a3d..0b9f71c 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -156,7 +156,7 @@ scroll-down = cmus-remote --volume -5% format =