summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2020-04-04 13:34:28 +0000
committerShubham Saini <shubham6405@gmail.com>2020-04-04 13:34:28 +0000
commit2813a43bda44a4ade58a6b95f4d16935a96b0f66 (patch)
treec29254d602eece1b6963912d35b20a87a32b19c2
parent91e9c808a0f2b01b67c32a3603626dac0cf90d49 (diff)
less bloat
-rwxr-xr-xbin/.local/bin/bat_check.sh13
-rwxr-xr-xbin/.local/bin/shut8
-rwxr-xr-xbspwm/.config/bspwm/bspwmrc4
-rw-r--r--compton/.config/compton.conf2
-rw-r--r--sxhkd/.config/sxhkd/sxhkdrc4
-rw-r--r--x/.Xresources10
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
2while true
3do
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
13done
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 @@
3RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara") 3RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara")
4 4
5case $RET in 5case $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 *) ;;
11esac 11esac
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 &
4dunst & 4dunst &
5unclutter & 5unclutter &
6compton &> /dev/null & 6compton &> /dev/null &
7~/scrypts/bat_check.sh & 7~/.local/bin/bat_check.sh &
8redshift -l 13.082680:80.270718 & 8redshift -l 13.082680:80.270718 &
9~/.fehbg & 9~/.fehbg &
10urxvtd & 10urxvtd &
@@ -18,7 +18,7 @@ bspc config split_ratio 0.52
18bspc config borderless_monocle true 18bspc config borderless_monocle true
19bspc config gapless_monocle true 19bspc config gapless_monocle true
20 20
21bspc rule -a Nightly desktop='^2' 21bspc rule -a firefox desktop='^2'
22bspc rule -a Spacefm desktop='^4' 22bspc 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
164XF86MonBrightnessDown 164XF86MonBrightnessDown
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'
166XF86MonBrightnessUp 166XF86MonBrightnessUp
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
13URxvt.scrollWithBuffer: true 13URxvt.scrollWithBuffer: true
14URxvt.scrollTtyKeypress: true 14URxvt.scrollTtyKeypress: true
15 15
16URxvt.font: xft:Hermit:pixelsize=12:style=medium:antialias=true:hinting=true:hintstyle=hintfull 16URxvt.font: xft:Hermit:pixelsize=12:style=medium:antialias=true
17URxvt.boldFont: xft:Hermit:pixelsize=12:style=bold:autohint=true:antialias=true 17URxvt.boldFont: xft:Hermit:pixelsize=12:style=bold:antialias=true
18URxvt.italicFont: xft:Hermit:pixelsize=12:style=italic:autohint=true:antialias=true 18URxvt.italicFont: xft:Hermit:pixelsize=12:style=italic:antialias=true
19URxvt.letterSpace: 1 19!URxvt.letterSpace: 1
20urxvt*termName: rxvt 20urxvt*termName: rxvt
21urxvt*scrollBar: false 21urxvt*scrollBar: false
22urxvt*matcher.button: 1 22urxvt*matcher.button: 1
@@ -73,7 +73,7 @@ URxvt*inheritPixmap: False
73*.color15: #d2d4de 73*.color15: #d2d4de
74 74
75! Perls 75! Perls
76URxvt.perl-ext-common : default,matcher,keyboard-select,url-select,resize-font 76URxvt.perl-ext-common : default,matcher,keyboard-select,resize-font
77URxvt.resize-font.step: 1 77URxvt.resize-font.step: 1
78URxvt.keysym.M-Escape : perl:keyboard-select:activate 78URxvt.keysym.M-Escape : perl:keyboard-select:activate
79URxvt.keysym.M-u : perl:url-select:select_next 79URxvt.keysym.M-u : perl:url-select:select_next