added tooltip with disk data

main
The_miro 2025-11-18 13:03:23 +01:00
parent ff08f1e8dd
commit 3e35f54fac
3 changed files with 20 additions and 5 deletions

View File

@ -32,10 +32,12 @@
:value volume
:onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%"
:onclick "hyprctl dispatch exec \[tag +mixer\] pavucontrol")
(metric :label ""
(box
:tooltip {disks}
(metric :label ""
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
:onchange ""
:onclick "")
:onclick ""))
(clock)
(systray :class "music" :orientation "h" :spacing 2 :space-evenly true)
))
@ -105,3 +107,8 @@
(defpoll calender :interval "600s"
"~/Dotfiles/desktopenvs/hyprland/scripts/calender-fix.sh")
(defpoll disks :interval "600s"
"~/Dotfiles/desktopenvs/hyprland/scripts/dysk-phydisks.sh")

View File

@ -37,10 +37,13 @@
:value volume
:onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%"
:onclick "hyprctl dispatch exec \[tag +mixer\] pavucontrol")
(metric :label ""
(box
:tooltip {disks}
(metric :label ""
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
:onchange ""
:onclick "")
:onclick ""))
(clock)
(systray :class "music" :orientation "h" :spacing 2 :space-evenly true)
))
@ -110,3 +113,7 @@
(defpoll calender :interval "600s"
"~/Dotfiles/desktopenvs/hyprland/scripts/calender-fix.sh")
(defpoll disks :interval "600s"
"~/Dotfiles/desktopenvs/hyprland/scripts/dysk-phydisks.sh")

3
desktopenvs/hyprland/scripts/dysk-phydisks.sh Normal file → Executable file
View File

@ -1,2 +1,3 @@
#!/bin/bash
dysk -a -f 'disk=ssd | disk=hdd'
rawdiskstr=$(dysk -a -f 'disk=ssd | disk=hdd')
echo "$rawdiskstr" | sed '$d'