Added games dir storage percent to swaybar to the left of root storage percent
This commit is contained in:
parent
d142cded03
commit
5f620bceb5
3 changed files with 6 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ output * bg #141514 solid_color
|
|||
# Monitors:
|
||||
output HDMI-A-1 res 1920x1080@239.76Hz pos 0,0 transform 0
|
||||
output DP-1 res 2560x1440@59.95Hz pos 1920,0 transform 270
|
||||
output eDP-1 disable
|
||||
output eDP-2 disable
|
||||
|
||||
# Workspace assignments:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/bash
|
||||
while true; do
|
||||
disk=$(df / --output=pcent 2>/dev/null | tail -1 | tr -d ' ')
|
||||
games=$(df /mnt/games --output=pcent 2>/dev/null | tail -1 | tr -d ' ')
|
||||
root=$(df / --output=pcent 2>/dev/null | tail -1 | tr -d ' ')
|
||||
datetime=$(date +'%m/%d/%Y %I:%M %p')
|
||||
echo "$disk $datetime"
|
||||
echo "$games $root $datetime"
|
||||
sleep 30
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue