summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/.local/bin/screenshot4
-rwxr-xr-xbin/.local/bin/shut4
-rwxr-xr-xbin/.local/bin/statusbar8
-rw-r--r--picom/.config/picom.conf4
-rwxr-xr-xspectrwm/.config/spectrwm/statusbar30
-rw-r--r--x/.xinitrc8
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
2screenshot() { 2screenshot() {
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 @@
3RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara" -nb "#000000" -nf "#bfbfbf" -sb "#84a0c6" -sf "#000000" -fn "Hermit:size=10") 3RET=$(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
5case $RET in 5case $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
6vol(){ 6vol(){
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
11bat() { 11bat() {
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
16dte() { 16dte() {
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
21tie() { 21tie() {
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
26while :; do 26while :; 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];
38opacity-rule = [ 38opacity-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
3BOLD='\033[1m'
4BB='\033[00m'
5
6vol(){
7 vol=$(pulsemixer --get-volume | awk '{print $1}')
8 echo -e "+@fg=1;vol+@fg=0; $vol% "
9}
10
11bat() {
12 power=$(cat /sys/class/power_supply/BAT0/capacity)
13 echo -e "+@fg=1;bat+@fg=0; $power% "
14}
15
16dte() {
17 dte=$(date +"%A, %B %d")
18 echo -e "+@fg=1;date+@fg=0; $dte "
19}
20
21tie() {
22 tme=$(date +"%I:%M %p")
23 echo -e "+@fg=1;time+@fg=0; $tme "
24}
25
26while :; do
27 echo "$(vol) $(bat) $(tie) $(dte)"
28 sleep 2
29done
30
diff --git a/x/.xinitrc b/x/.xinitrc
index 8a24678..4a4f7d0 100644
--- a/x/.xinitrc
+++ b/x/.xinitrc
@@ -1,5 +1,9 @@
1#exec dbus-launch --exit-with-session spectrwm 1#exec dbus-launch --exit-with-session spectrwm
2xrdb ~/.Xresources & 2#xrdb ~/.Xresources &
3xset b off & 3xset b off &
4xset s 600 & 4xset s 600 &
5exec dbus-launch --exit-with-session spectrwm 5~/bin/xss &
6~/.fehbg &
7picom 2>/dev/null &
8xsetroot -name "bat $(cat /sys/class/power_supply/BAT0/capacity)"
9exec dbus-launch --exit-with-session startdwm