Added games dir storage percent to swaybar to the left of root storage percent

This commit is contained in:
ManOfGoldForever 2026-04-13 00:41:58 -04:00
parent d142cded03
commit 5f620bceb5
3 changed files with 6 additions and 3 deletions

View file

@ -2,5 +2,6 @@
export WLR_NO_HARDWARE_CURSORS=1
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export WLR_RENDERER=vulkan
export WLR_RENDERER=gles2
export WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card2
exec sway --unsupported-gpu

View file

@ -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:

View file

@ -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