diff options
Diffstat (limited to 'dist')
| -rwxr-xr-x | dist/bar.sh | 39 | ||||
| -rwxr-xr-x | dist/run.sh | 2 | ||||
| -rw-r--r-- | dist/wallpaper.jpg | bin | 0 -> 254852 bytes |
3 files changed, 41 insertions, 0 deletions
diff --git a/dist/bar.sh b/dist/bar.sh new file mode 100755 index 0000000..2b23972 --- /dev/null +++ b/dist/bar.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash +wifi() { + iwgetid -r +} + +battery() { + c=$(cat /sys/class/power_supply/BAT1/capacity) + + if [[ $c > 85 ]]; then + echo " $c" + elif [[ $c > 70 ]]; then + echo " $c" + elif [[ $c > 50 ]]; then + echo " $c" + elif [[ $c > 30 ]]; then + echo " $c" + else + echo " $c" + fi +} + +charging() { + if [[ "$(cat /sys/class/power_supply/BAT1/status)" == "Charging" ]]; then + echo "+" + fi +} + +calendar() { + date +'%a, %d %b %Y | %H:%M' +} + +volume() { + pamixer --get-volume +} + +while [[ true ]]; do + dwlb -status all "| ^lm(alacritty -e nmtui-connect) $(wifi)^lm() | $(volume)% | $(battery)%$(charging) | $(calendar) | λ" + sleep 1 +done diff --git a/dist/run.sh b/dist/run.sh new file mode 100755 index 0000000..eff419f --- /dev/null +++ b/dist/run.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +bemenu-run -i -p λ -b --hp 8 --fn 'UbuntuMono Nerd Font Mono' --tb '#272727' --tf '#f2f0fa' --fb '#272727' --ff 'f2f0fa' --cb '#272727' --cf '#f2f0fa' --nb '#272727' --nf '#f2f0fa' --hb '#f2f0fa' --hf '#272727' --fbb '#272727' --fbf '#f2f0fa' --sb '#f2f0fa' --sf '#272727' --ab '#272727' --af '#f2f0fa' --scb '#272727' --scf '#272727' diff --git a/dist/wallpaper.jpg b/dist/wallpaper.jpg Binary files differnew file mode 100644 index 0000000..9cdc604 --- /dev/null +++ b/dist/wallpaper.jpg |
