diff options
author | Shubham Saini <shubham6405@pm.me> | 2020-06-16 10:55:50 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@pm.me> | 2020-06-16 10:55:50 +0000 |
commit | 2c80d39ee174beea5a8a78f9bcf9d02a24415f73 (patch) | |
tree | 4cad38eb107cff1f27ce457917f0e3f97b0202b3 /spectrwm | |
parent | 8857288945fb0202666092c524803ed86a5d03d8 (diff) |
nice date&time
Diffstat (limited to 'spectrwm')
-rw-r--r-- | spectrwm/.config/spectrwm/spectrwm.conf | 8 | ||||
-rwxr-xr-x | spectrwm/.config/spectrwm/statusbar | 6 |
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 |
69 | autorun = ws[1]:~/.fehbg | 69 | autorun = ws[1]:~/.fehbg |
70 | autorun = ws[1]:st | 70 | autorun = ws[1]:~/bin/stst |
71 | autorun = ws[1]:picom | 71 | autorun = ws[1]:~/bin/pica |
72 | autorun = ws[2]:firefox-bin | 72 | autorun = ws[2]:~/bin/fireff |
73 | autorun = ws[1]:~/bin/xss | 73 | autorun = ws[1]:~/bin/xss |
74 | autorun = ws[1]:~/.local/bin/bat_check.sh | 74 | autorun = 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: |
103 | program[lock] = xset s activate | 103 | program[lock] = xset s activate |
104 | program[term] = st | 104 | program[term] = ~/bin/stst |
105 | program[menu] = ~/bin/menu | 105 | program[menu] = ~/bin/menu |
106 | program[bup] = doas bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' | 106 | program[bup] = doas bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' |
107 | program[bdown] = doas bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done' | 107 | program[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 | ||
13 | dte() { | 13 | dte() { |
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 | ||
18 | tie() { | 18 | tie() { |
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 | ||
23 | while :; do | 23 | while :; do |
24 | echo "$(vol) $(bat) $(tie) $(dte)" | 24 | echo "$(vol) $(bat) $(tie) $(dte)" |
25 | sleep 2 | 25 | sleep 2 |
26 | done | 26 | done |
27 | 27 | ||