Merge branch 'master' of https://tildegit.org/randomuser/utils
just merge it darn it
This commit is contained in:
commit
e5e391af8c
1
Makefile
1
Makefile
|
@ -33,6 +33,7 @@ sh:
|
|||
cp -f sh/tmenu_run $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/ss $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/net $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f sh/bspwm-toggle-gaps $(DESTDIR)$(PREFIX)/bin
|
||||
|
||||
check:
|
||||
shellcheck sh/*
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
gaps="$(bspc config top_padding)"
|
||||
|
||||
if [ "$gaps" -eq 20 ]; then
|
||||
bspc config window_gap 0
|
||||
bspc config top_padding 18
|
||||
else
|
||||
bspc config window_gap 3
|
||||
bspc config top_padding 20
|
||||
fi
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
power_prefix="/sys/class/power_supply/"
|
||||
[ -d "${power_prefix}sbs-20-000b" ] && bat="sbs-20-000b"
|
||||
[ -d "${power_prefix}BAT0" ] && bat="BAT0"
|
||||
|
||||
[ "$(ps aux | grep pulseaudio | wc -l)" -eq 2 ] && ss="pulse" || ss="alsa"
|
||||
|
||||
|
@ -25,6 +26,7 @@ mod_bspwm () {
|
|||
}
|
||||
|
||||
mod_power () {
|
||||
[ -z "$bat" ] ||
|
||||
tr -d '\n' < /sys/class/power_supply/$bat/capacity
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue