Configure for .stowrc

This commit is contained in:
Ian Keane 2022-07-08 22:10:57 -04:00
parent e58bb4c0a0
commit 1091129506
132 changed files with 4 additions and 18 deletions

View file

@ -0,0 +1,25 @@
#!/usr/bin/fish
while true
set batt_str (battery)
set batt_emoji = ""
switch $batt_str
case "Full*"
set batt_emoji "✔️"
set batt (battery | cut -d ' ' -f2)%
case 'Discharging*'
set batt_emoji "🔋"
set batt (battery | cut -d ' ' -f2)%
case 'Not*'
set batt_emoji "X"
set batt (battery | cut -d ' ' -f3)%
case 'Charging*'
set batt_emoji "⚡"
set batt (battery | cut -d ' ' -f2)%
end
echo -e "%{c}$(now) %{r}$(sugar --lb) $batt_emoji $batt "
sleep 1
end