From 2c80d39ee174beea5a8a78f9bcf9d02a24415f73 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Tue, 16 Jun 2020 16:25:50 +0530 Subject: nice date&time --- spectrwm/.config/spectrwm/spectrwm.conf | 8 ++++---- spectrwm/.config/spectrwm/statusbar | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'spectrwm') 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 # Launch applications in a workspace of choice autorun = ws[1]:~/.fehbg -autorun = ws[1]:st -autorun = ws[1]:picom -autorun = ws[2]:firefox-bin +autorun = ws[1]:~/bin/stst +autorun = ws[1]:~/bin/pica +autorun = ws[2]:~/bin/fireff autorun = ws[1]:~/bin/xss autorun = ws[1]:~/.local/bin/bat_check.sh @@ -101,7 +101,7 @@ keyboard_mapping = ~/.config/spectrwm/keybindings.conf # Validated default programs: program[lock] = xset s activate -program[term] = st +program[term] = ~/bin/stst program[menu] = ~/bin/menu program[bup] = doas bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' 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() { } dte() { - dte=$(date +"%A, %B %d") + dte=$(date +"%a, %b %d") echo -e "+@fg=1;date+@fg=0; $dte " } tie() { - tme=$(date +"%I:%M %p") + tme=$(date +"%I:%M %P") echo -e "+@fg=1;time+@fg=0; $tme " } while :; do - echo "$(vol) $(bat) $(tie) $(dte)" + echo "$(vol) $(bat) $(tie) $(dte)" sleep 2 done -- cgit v1.2.3