feat:migrate hyprland config with nwg tools
This commit is contained in:
parent
54ea69dd8e
commit
fc39a811c9
251 changed files with 23198 additions and 118 deletions
18
home/private_dot_config/nwg-panel/executors/executable_au.sh
Normal file
18
home/private_dot_config/nwg-panel/executors/executable_au.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
# This is a helper to the arch-updates.py executor
|
||||
# Add `<your-terminal-here> -e "au.sh; swaymsg reload"` as the On left click action
|
||||
|
||||
# Just in case - warn if battery level < threshold
|
||||
l=$(acpi | awk -F ',' '{print $2}')
|
||||
if [[ ! -z "$l" ]]; then
|
||||
level=${l:1:-1}
|
||||
threshold=30
|
||||
if [[ "$level" -lt "$threshold" ]]; then
|
||||
echo -e "\n*** BATTERY LEVEL$l, CONNECT AC! ***\n"
|
||||
fi
|
||||
fi
|
||||
|
||||
trizen -Syu &&
|
||||
rm /tmp/arch-updates
|
||||
echo Press enter to exit!; read;
|
Loading…
Add table
Add a link
Reference in a new issue