summaryrefslogtreecommitdiff
path: root/spectrwm
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@pm.me>2020-06-16 10:55:50 +0000
committerShubham Saini <shubham6405@pm.me>2020-06-16 10:55:50 +0000
commit2c80d39ee174beea5a8a78f9bcf9d02a24415f73 (patch)
tree4cad38eb107cff1f27ce457917f0e3f97b0202b3 /spectrwm
parent8857288945fb0202666092c524803ed86a5d03d8 (diff)
nice date&time
Diffstat (limited to 'spectrwm')
-rw-r--r--spectrwm/.config/spectrwm/spectrwm.conf8
-rwxr-xr-xspectrwm/.config/spectrwm/statusbar6
2 files changed, 7 insertions, 7 deletions
diff --git a/spectrwm/.config/spectrwm/spectrwm.conf b/spectrwm/.config/spectrwm/spectrwm.conf
index 8466a62..5ccdd54 100644
--- a/spectrwm/.config/spectrwm/spectrwm.conf
+++ b/spectrwm/.config/spectrwm/spectrwm.conf
@@ -67,9 +67,9 @@ urgent_enabled = 1
67 67
68# Launch applications in a workspace of choice 68# Launch applications in a workspace of choice
69autorun = ws[1]:~/.fehbg 69autorun = ws[1]:~/.fehbg
70autorun = ws[1]:st 70autorun = ws[1]:~/bin/stst
71autorun = ws[1]:picom 71autorun = ws[1]:~/bin/pica
72autorun = ws[2]:firefox-bin 72autorun = ws[2]:~/bin/fireff
73autorun = ws[1]:~/bin/xss 73autorun = ws[1]:~/bin/xss
74autorun = ws[1]:~/.local/bin/bat_check.sh 74autorun = ws[1]:~/.local/bin/bat_check.sh
75 75
@@ -101,7 +101,7 @@ keyboard_mapping = ~/.config/spectrwm/keybindings.conf
101 101
102# Validated default programs: 102# Validated default programs:
103program[lock] = xset s activate 103program[lock] = xset s activate
104program[term] = st 104program[term] = ~/bin/stst
105program[menu] = ~/bin/menu 105program[menu] = ~/bin/menu
106program[bup] = doas bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' 106program[bup] = doas bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done'
107program[bdown] = doas bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done' 107program[bdown] = doas bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done'
diff --git a/spectrwm/.config/spectrwm/statusbar b/spectrwm/.config/spectrwm/statusbar
index fa02a69..5f6918c 100755
--- a/spectrwm/.config/spectrwm/statusbar
+++ b/spectrwm/.config/spectrwm/statusbar
@@ -11,17 +11,17 @@ bat() {
11} 11}
12 12
13dte() { 13dte() {
14 dte=$(date +"%A, %B %d") 14 dte=$(date +"%a, %b %d")
15 echo -e "+@fg=1;date+@fg=0; $dte " 15 echo -e "+@fg=1;date+@fg=0; $dte "
16} 16}
17 17
18tie() { 18tie() {
19 tme=$(date +"%I:%M %p") 19 tme=$(date +"%I:%M %P")
20 echo -e "+@fg=1;time+@fg=0; $tme " 20 echo -e "+@fg=1;time+@fg=0; $tme "
21} 21}
22 22
23while :; do 23while :; do
24 echo "$(vol) $(bat) $(tie) $(dte)" 24 echo "$(vol) $(bat) $(tie) $(dte)"
25 sleep 2 25 sleep 2
26done 26done
27 27