diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-04-04 13:34:28 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-04-04 13:34:28 +0000 |
commit | 2813a43bda44a4ade58a6b95f4d16935a96b0f66 (patch) | |
tree | c29254d602eece1b6963912d35b20a87a32b19c2 | |
parent | 91e9c808a0f2b01b67c32a3603626dac0cf90d49 (diff) |
less bloat
-rwxr-xr-x | bin/.local/bin/bat_check.sh | 13 | ||||
-rwxr-xr-x | bin/.local/bin/shut | 8 | ||||
-rwxr-xr-x | bspwm/.config/bspwm/bspwmrc | 4 | ||||
-rw-r--r-- | compton/.config/compton.conf | 2 | ||||
-rw-r--r-- | sxhkd/.config/sxhkd/sxhkdrc | 4 | ||||
-rw-r--r-- | x/.Xresources | 10 |
6 files changed, 27 insertions, 14 deletions
diff --git a/bin/.local/bin/bat_check.sh b/bin/.local/bin/bat_check.sh new file mode 100755 index 0000000..b54ce7b --- /dev/null +++ b/bin/.local/bin/bat_check.sh | |||
@@ -0,0 +1,13 @@ | |||
1 | #!/bin/bash | ||
2 | while true | ||
3 | do | ||
4 | battery_level=$(cat /sys/class/power_supply/BAT0/capacity) | ||
5 | if [ $battery_level -ge 95 ]; then | ||
6 | notify-send 'Pull the plug!' $battery_level% | ||
7 | elif [ $battery_level -le 30 -a $battery_level -ge 20 ]; then | ||
8 | notify-send 'Plug me!' $battery_level% | ||
9 | elif [ $battery_level -le 20 ]; then | ||
10 | notify-send -u critical 'Plug me NOW!' $battery_level% | ||
11 | fi | ||
12 | sleep 300 # 300 seconds or 5 minutes | ||
13 | done | ||
diff --git a/bin/.local/bin/shut b/bin/.local/bin/shut index 88711d1..527dfb1 100755 --- a/bin/.local/bin/shut +++ b/bin/.local/bin/shut | |||
@@ -3,9 +3,9 @@ | |||
3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara") | 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) doas poweroff ;; | 6 | shutdown) sudo poweroff ;; |
7 | reboot) doas reboot ;; | 7 | reboot) sudo reboot ;; |
8 | sleep) /home/fd0e/.local/bin/lock & doas sh -c "echo -n mem > /sys/power/state" ;; | 8 | sleep) /home/fd0e/.local/bin/lock & sudo sh -c "echo -n mem > /sys/power/state" ;; |
9 | lock) /home/fd0e/.local/bin/lock ;; | 9 | lock) /home/fd0e/.local/bin/lock ;; |
10 | *) ;; | 10 | *) ;; |
11 | esac | 11 | esac |
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index a586ed2..00c97d1 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc | |||
@@ -4,7 +4,7 @@ sxhkd & | |||
4 | dunst & | 4 | dunst & |
5 | unclutter & | 5 | unclutter & |
6 | compton &> /dev/null & | 6 | compton &> /dev/null & |
7 | ~/scrypts/bat_check.sh & | 7 | ~/.local/bin/bat_check.sh & |
8 | redshift -l 13.082680:80.270718 & | 8 | redshift -l 13.082680:80.270718 & |
9 | ~/.fehbg & | 9 | ~/.fehbg & |
10 | urxvtd & | 10 | urxvtd & |
@@ -18,7 +18,7 @@ bspc config split_ratio 0.52 | |||
18 | bspc config borderless_monocle true | 18 | bspc config borderless_monocle true |
19 | bspc config gapless_monocle true | 19 | bspc config gapless_monocle true |
20 | 20 | ||
21 | bspc rule -a Nightly desktop='^2' | 21 | bspc rule -a firefox desktop='^2' |
22 | bspc rule -a Spacefm desktop='^4' | 22 | bspc rule -a Spacefm desktop='^4' |
23 | 23 | ||
24 | $HOME/.config/polybar/launch.sh & | 24 | $HOME/.config/polybar/launch.sh & |
diff --git a/compton/.config/compton.conf b/compton/.config/compton.conf index cc0e8fa..09e44e6 100644 --- a/compton/.config/compton.conf +++ b/compton/.config/compton.conf | |||
@@ -15,7 +15,7 @@ shadow-exclude = [ | |||
15 | "name = 'Polybar tray window'", | 15 | "name = 'Polybar tray window'", |
16 | "class_g ?= 'Rofi'", | 16 | "class_g ?= 'Rofi'", |
17 | "class_g ?= 'dwm'", | 17 | "class_g ?= 'dwm'", |
18 | "class_g = 'Firefox' && argb", | 18 | "class_g = 'firefox' && argb", |
19 | "_GTK_FRAME_EXTENTS@:c" | 19 | "_GTK_FRAME_EXTENTS@:c" |
20 | ]; | 20 | ]; |
21 | 21 | ||
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index a2739c9..0e75a4d 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc | |||
@@ -162,6 +162,6 @@ XF86Audio{Play,Next,Prev} | |||
162 | 162 | ||
163 | #light | 163 | #light |
164 | XF86MonBrightnessDown | 164 | XF86MonBrightnessDown |
165 | doas sh -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done' | 165 | sudo sh -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done' |
166 | XF86MonBrightnessUp | 166 | XF86MonBrightnessUp |
167 | doas sh -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' | 167 | sudo sh -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' |
diff --git a/x/.Xresources b/x/.Xresources index aefcb91..ae32493 100644 --- a/x/.Xresources +++ b/x/.Xresources | |||
@@ -13,10 +13,10 @@ URxvt.scrollTtyOutput: false | |||
13 | URxvt.scrollWithBuffer: true | 13 | URxvt.scrollWithBuffer: true |
14 | URxvt.scrollTtyKeypress: true | 14 | URxvt.scrollTtyKeypress: true |
15 | 15 | ||
16 | URxvt.font: xft:Hermit:pixelsize=12:style=medium:antialias=true:hinting=true:hintstyle=hintfull | 16 | URxvt.font: xft:Hermit:pixelsize=12:style=medium:antialias=true |
17 | URxvt.boldFont: xft:Hermit:pixelsize=12:style=bold:autohint=true:antialias=true | 17 | URxvt.boldFont: xft:Hermit:pixelsize=12:style=bold:antialias=true |
18 | URxvt.italicFont: xft:Hermit:pixelsize=12:style=italic:autohint=true:antialias=true | 18 | URxvt.italicFont: xft:Hermit:pixelsize=12:style=italic:antialias=true |
19 | URxvt.letterSpace: 1 | 19 | !URxvt.letterSpace: 1 |
20 | urxvt*termName: rxvt | 20 | urxvt*termName: rxvt |
21 | urxvt*scrollBar: false | 21 | urxvt*scrollBar: false |
22 | urxvt*matcher.button: 1 | 22 | urxvt*matcher.button: 1 |
@@ -73,7 +73,7 @@ URxvt*inheritPixmap: False | |||
73 | *.color15: #d2d4de | 73 | *.color15: #d2d4de |
74 | 74 | ||
75 | ! Perls | 75 | ! Perls |
76 | URxvt.perl-ext-common : default,matcher,keyboard-select,url-select,resize-font | 76 | URxvt.perl-ext-common : default,matcher,keyboard-select,resize-font |
77 | URxvt.resize-font.step: 1 | 77 | URxvt.resize-font.step: 1 |
78 | URxvt.keysym.M-Escape : perl:keyboard-select:activate | 78 | URxvt.keysym.M-Escape : perl:keyboard-select:activate |
79 | URxvt.keysym.M-u : perl:url-select:select_next | 79 | URxvt.keysym.M-u : perl:url-select:select_next |