Replies: 1 comment
-
|
Yes, it's possible to modify the disk module to show only when the filesystem is mounted. In Waybar, you can check if a specific mount point is active using shell commands in the configuration. You could create a script or use a condition to check whether the Here’s an example of how you could configure it in Waybar: "modules-right": [
"custom/media_disk"
],
"custom/media_disk": {
"exec": "if mountpoint -q /data; then echo 'Disk Mounted'; else echo ''; fi",
"interval": 30
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a disk module for the path
/datawhich is where a media drive is mounted to. When it gets unmounted, the module shows the same info as my other disk module for/home/user(my system disk).Is there a way to only show the disk module if the filesystem is mounted by the media disk?
Also was curious what is used to check disk size--I currently have interval set to 30 seconds but it would be nice to get close to real time--would like to know if this is relatively inexpensive to do. From what I understand, there's no event for determining disk size so polling is expensive, right?
Beta Was this translation helpful? Give feedback.
All reactions