switch from simplestatus to status
This commit is contained in:
parent
b0168f8ace
commit
265845b262
|
@ -13,4 +13,7 @@ bspc config pointer_follows_focus true
|
|||
bspc config pointer_follows_monitor true
|
||||
bspc config focus_follows_pointer true
|
||||
|
||||
bspc config top_padding 20
|
||||
|
||||
bspc rule -a st-gpg-menu state=floating
|
||||
bspc rule -a statusbar border=off sticky=on state=floating manage=off
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
used_desk=$(bspc query -D -d .occupied --names | tr '\n' ' ')
|
||||
current_desk=$(bspc query -D -d .focused --names)
|
||||
final_string=""
|
||||
current_printed=0
|
||||
|
||||
for i in $used_desk; do
|
||||
[ "$i" = "$current_desk" ] && \
|
||||
final_string=${final_string}"%{R}$i%{R} " && \
|
||||
current_printed=1 || \
|
||||
final_string=${final_string}"$i "
|
||||
done
|
||||
|
||||
[ $current_printed -eq 0 ] &&
|
||||
final_string=${final_string}"%{R}$current_desk%{R}"
|
||||
|
||||
printf "%s" "$final_string"
|
||||
|
||||
exit
|
|
@ -1,9 +0,0 @@
|
|||
module power 7 30
|
||||
module time 7 30
|
||||
module date 7 30
|
||||
module volume 12 30
|
||||
module bspwm 10 30
|
||||
|
||||
order bspwm date time volume power
|
||||
|
||||
format %{l}&%{r}& & & &
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
printf "%s" $(date '+%m-%d')
|
||||
|
||||
exit
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
battery="sbs-20-000b"
|
||||
perc=$(cat /sys/class/power_supply/$battery/capacity)
|
||||
state=$(
|
||||
cat /sys/class/power_supply/$battery/status | \
|
||||
sed 's/Discharging/↓/g;s/Charging/↑/g'
|
||||
)
|
||||
printf "%s %s" "$perc" "$state"
|
||||
|
||||
exit
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
printf "%s" $(date '+%R')
|
||||
|
||||
exit
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$(ps aux | grep pulseaudio | wc -l)" -eq 2 ]; then
|
||||
text="$(pactl list sinks | awk -F' ' '$1 == "Volume:" {print $5}')"
|
||||
printf "pv%s" "$text"
|
||||
else
|
||||
text="$(amixer | grep '^ Front' | awk -F'[' '{ ORS = ""; print substr($2, 1, 3); exit }')"
|
||||
printf "av%s" "$text"
|
||||
fi
|
2
sx/sxrc
2
sx/sxrc
|
@ -3,7 +3,7 @@ disp
|
|||
wallpaper
|
||||
|
||||
# statusbar
|
||||
status
|
||||
statusbar &
|
||||
|
||||
# start the wm
|
||||
sxhkd &
|
||||
|
|
|
@ -71,7 +71,7 @@ super + {_,ctrl +,shift + }{h,j,k,l}
|
|||
|
||||
super + {_,shift + } {1-9,0}
|
||||
bspc {desktop -f,node -d} '^{1-9,10}'; \
|
||||
{killall -10 simplestatus,_}
|
||||
{killall -10 status,_}
|
||||
|
||||
super + {t,f,s}
|
||||
bspc node -t {tiled,floating,fullscreen}
|
||||
|
|
Loading…
Reference in New Issue