summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@pm.me>2020-06-24 10:38:07 +0000
committerShubham Saini <shubham6405@pm.me>2020-06-24 10:38:07 +0000
commita656c375e9ce53b2074ae5798abd436f5daf8d9b (patch)
tree848d56183e0e72fadc8fafad05296accad2bdb58
parent362996db066e0c54870cbadec6bb017d1733a180 (diff)
added + & - for bat
-rwxr-xr-xbin/.local/bin/passmenu2
-rwxr-xr-xspectrwm/.config/spectrwm/statusbar7
2 files changed, 7 insertions, 2 deletions
diff --git a/bin/.local/bin/passmenu b/bin/.local/bin/passmenu
index 9c611a7..1d22303 100755
--- a/bin/.local/bin/passmenu
+++ b/bin/.local/bin/passmenu
@@ -2,4 +2,4 @@
2 2
3password=$(find ~/.password-store/ -type f -name '*.gpg' | 3password=$(find ~/.password-store/ -type f -name '*.gpg' |
4 sed 's/.*\/\(.*\)\.gpg$/\1/' | dmenu -l 5 -p "Pass:") 4 sed 's/.*\/\(.*\)\.gpg$/\1/' | dmenu -l 5 -p "Pass:")
5[ -n "$password" ] && urxvtc -e pass -c "$password" 5[ -n "$password" ] && st -e pass -c "$password"
diff --git a/spectrwm/.config/spectrwm/statusbar b/spectrwm/.config/spectrwm/statusbar
index 5f6918c..01e1223 100755
--- a/spectrwm/.config/spectrwm/statusbar
+++ b/spectrwm/.config/spectrwm/statusbar
@@ -7,7 +7,12 @@ vol(){
7 7
8bat() { 8bat() {
9 power=$(cat /sys/class/power_supply/BAT0/capacity) 9 power=$(cat /sys/class/power_supply/BAT0/capacity)
10 echo -e "+@fg=1;bat+@fg=0; $power% " 10 status=$(cat /sys/class/power_supply/BAT0/status)
11 if [ "$status" == "Charging" ]; then
12 echo -e "+@fg=1;bat+@fg=0; +$power% "
13 elif [ "$status" == "Discharging" ]; then
14 echo -e "+@fg=1;bat+@fg=0; -$power% "
15 fi
11} 16}
12 17
13dte() { 18dte() {