diff options
-rwxr-xr-x | bin/.local/bin/screenshot | 4 | ||||
-rwxr-xr-x | bin/.local/bin/shut | 4 | ||||
-rwxr-xr-x | bin/.local/bin/statusbar | 8 | ||||
-rw-r--r-- | picom/.config/picom.conf | 4 | ||||
-rwxr-xr-x | spectrwm/.config/spectrwm/statusbar | 30 | ||||
-rw-r--r-- | x/.xinitrc | 8 |
6 files changed, 46 insertions, 12 deletions
diff --git a/bin/.local/bin/screenshot b/bin/.local/bin/screenshot index 107faf7..100bbe2 100755 --- a/bin/.local/bin/screenshot +++ b/bin/.local/bin/screenshot | |||
@@ -1,10 +1,10 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | screenshot() { | 2 | screenshot() { |
3 | case $1 in | 3 | case $1 in |
4 | full) | 4 | f*) |
5 | scrot -m | 5 | scrot -m |
6 | ;; | 6 | ;; |
7 | window) | 7 | w*) |
8 | sleep 1 | 8 | sleep 1 |
9 | scrot -s | 9 | scrot -s |
10 | ;; | 10 | ;; |
diff --git a/bin/.local/bin/shut b/bin/.local/bin/shut index 801d5bf..76a7bd0 100755 --- a/bin/.local/bin/shut +++ b/bin/.local/bin/shut | |||
@@ -3,8 +3,8 @@ | |||
3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara" -nb "#000000" -nf "#bfbfbf" -sb "#84a0c6" -sf "#000000" -fn "Hermit:size=10") | 3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara" -nb "#000000" -nf "#bfbfbf" -sb "#84a0c6" -sf "#000000" -fn "Hermit:size=10") |
4 | 4 | ||
5 | case $RET in | 5 | case $RET in |
6 | shutdown) sudo poweroff ;; | 6 | shutdown) doas poweroff ;; |
7 | reboot) sudo reboot ;; | 7 | reboot) doas reboot ;; |
8 | sleep) xset s activate & sudo zzz ;; | 8 | sleep) xset s activate & sudo zzz ;; |
9 | lock) xset s activate ;; | 9 | lock) xset s activate ;; |
10 | *) ;; | 10 | *) ;; |
diff --git a/bin/.local/bin/statusbar b/bin/.local/bin/statusbar index 433b4d5..00b5d2b 100755 --- a/bin/.local/bin/statusbar +++ b/bin/.local/bin/statusbar | |||
@@ -5,22 +5,22 @@ BB='\033[00m' | |||
5 | 5 | ||
6 | vol(){ | 6 | vol(){ |
7 | vol=$(pulsemixer --get-volume | awk '{print $1}') | 7 | vol=$(pulsemixer --get-volume | awk '{print $1}') |
8 | echo -e "+@fg=1;vol+@fg=0; $vol% " | 8 | echo -e "vol $vol% " |
9 | } | 9 | } |
10 | 10 | ||
11 | bat() { | 11 | bat() { |
12 | power=$(cat /sys/class/power_supply/BAT0/capacity) | 12 | power=$(cat /sys/class/power_supply/BAT0/capacity) |
13 | echo -e "+@fg=1;bat+@fg=0; $power% " | 13 | echo -e "bat $power% " |
14 | } | 14 | } |
15 | 15 | ||
16 | dte() { | 16 | dte() { |
17 | dte=$(date +"%A, %B %d") | 17 | dte=$(date +"%A, %B %d") |
18 | echo -e "+@fg=1;date+@fg=0; $dte " | 18 | echo -e "date $dte " |
19 | } | 19 | } |
20 | 20 | ||
21 | tie() { | 21 | tie() { |
22 | tme=$(date +"%I:%M %p") | 22 | tme=$(date +"%I:%M %p") |
23 | echo -e "+@fg=1;time+@fg=0; $tme " | 23 | echo -e "time $tme " |
24 | } | 24 | } |
25 | 25 | ||
26 | while :; do | 26 | while :; do |
diff --git a/picom/.config/picom.conf b/picom/.config/picom.conf index 68c6ee5..1856f93 100644 --- a/picom/.config/picom.conf +++ b/picom/.config/picom.conf | |||
@@ -37,8 +37,8 @@ blur-background-exclude = [ | |||
37 | ]; | 37 | ]; |
38 | opacity-rule = [ | 38 | opacity-rule = [ |
39 | "40:class_g = 'Bspwm' && class_i = 'presel_feedback'", | 39 | "40:class_g = 'Bspwm' && class_i = 'presel_feedback'", |
40 | "100:class_g = 'URxvt' && focused", | 40 | "100:class_g = 'st-256color' && focused", |
41 | "95:class_g = 'URxvt' && !focused" | 41 | "95:class_g = 'st-256color' && !focused" |
42 | ]; | 42 | ]; |
43 | 43 | ||
44 | ## FADING | 44 | ## FADING |
diff --git a/spectrwm/.config/spectrwm/statusbar b/spectrwm/.config/spectrwm/statusbar new file mode 100755 index 0000000..c90c1df --- /dev/null +++ b/spectrwm/.config/spectrwm/statusbar | |||
@@ -0,0 +1,30 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | BOLD='\033[1m' | ||
4 | BB='\033[00m' | ||
5 | |||
6 | vol(){ | ||
7 | vol=$(pulsemixer --get-volume | awk '{print $1}') | ||
8 | echo -e "+@fg=1;vol+@fg=0; $vol% " | ||
9 | } | ||
10 | |||
11 | bat() { | ||
12 | power=$(cat /sys/class/power_supply/BAT0/capacity) | ||
13 | echo -e "+@fg=1;bat+@fg=0; $power% " | ||
14 | } | ||
15 | |||
16 | dte() { | ||
17 | dte=$(date +"%A, %B %d") | ||
18 | echo -e "+@fg=1;date+@fg=0; $dte " | ||
19 | } | ||
20 | |||
21 | tie() { | ||
22 | tme=$(date +"%I:%M %p") | ||
23 | echo -e "+@fg=1;time+@fg=0; $tme " | ||
24 | } | ||
25 | |||
26 | while :; do | ||
27 | echo "$(vol) $(bat) $(tie) $(dte)" | ||
28 | sleep 2 | ||
29 | done | ||
30 | |||
@@ -1,5 +1,9 @@ | |||
1 | #exec dbus-launch --exit-with-session spectrwm | 1 | #exec dbus-launch --exit-with-session spectrwm |
2 | xrdb ~/.Xresources & | 2 | #xrdb ~/.Xresources & |
3 | xset b off & | 3 | xset b off & |
4 | xset s 600 & | 4 | xset s 600 & |
5 | exec dbus-launch --exit-with-session spectrwm | 5 | ~/bin/xss & |
6 | ~/.fehbg & | ||
7 | picom 2>/dev/null & | ||
8 | xsetroot -name "bat $(cat /sys/class/power_supply/BAT0/capacity)" | ||
9 | exec dbus-launch --exit-with-session startdwm | ||