end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.06k stars 196 forks source link

fixed uptime in AGS sideright module for non-Arch distros #634

Closed aliqut closed 1 week ago

aliqut commented 1 week ago

I installed the dotfiles on OpenSUSE Tumbleweed. When opening the dropdown on the right side of the bar, it wasn't showing me the uptime. Tumbleweed doesn't have "uptime -p" as an option.

@nullptroma mentions this issue on the OpenSUSE install discussion

I modified the code, making it attempt to run "uptime -p", and if it fails, it parses the output of "uptime" to display on the panel.

end-4 commented 1 week ago

it doesn't change behavior on arch and i can't be bothered to install opensuse so i'm just gonna merge