From 1127041cda7ff8aaadd5321a27d404a00db2088d Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Tue, 12 Mar 2024 21:56:50 +0530 Subject: Revert "dwm" This reverts commit 55542f1ce3f313419ebe6a7fa9a7629898e6ce2e. --- dist/dwl/bar.sh | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 dist/dwl/bar.sh (limited to 'dist/dwl/bar.sh') diff --git a/dist/dwl/bar.sh b/dist/dwl/bar.sh deleted file mode 100755 index 2b23972..0000000 --- a/dist/dwl/bar.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/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 -- cgit v1.2.3