Added wait for system tray on start

- Close applications before shutdown/logout/reboot
- Fixed battery check script
- Always display hidden files in ranger
TODO: - Wait for logout/shutdown/reboot until all applications are closed (timeout)
This commit is contained in:
2023-11-06 19:04:56 +01:00
parent c30a2370ae
commit 464a9b7d86
10 changed files with 43 additions and 18 deletions

View File

@@ -8,10 +8,12 @@ if [ -z $bat ]; then
fi
while true; do
per=$(upower -i $bat | grep percentage | awk '{print $2}')
upower=$(upower -i $bat)
state=$(echo "$upower" | grep state | awk '{print $2}')
per=$(echo "$upower" | grep percentage | awk '{print $2}')
per="${per%\%}"
if "$per" -lt 15 #&& ! is_charging
if [ "$per" -lt 15 ] && [ "$state" != "charging" ]; then
eww open battery_warning
fi