moved hypr scripts
This commit is contained in:
1 parent
37fb63549e
commit
f338147907
22 files changed
+610
-5
No files matched your search
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Toggles the GAMING_PROFILE tuxedo power profile
|
||||
|
||||
GAMEMODE=$(tailor profile list | grep active | cut --fields 1 -d' ')
|
||||
GAMING_PROFILE="GAMEINK"
|
||||
DEFAULT_PROFILE="HOTHOTHOT"
|
||||
|
||||
function failure() {
|
||||
dunstify -r 55422 -t 4000 -u normal -i ~/.icons/candy-icons/apps/scalable/teamspeak.svg "Failed to toggle power profile!"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [[ "$GAMEMODE" =~ "GAMEINK" ]] ; then
|
||||
# Default profile
|
||||
tailor profile set "$DEFAULT_PROFILE" || failure
|
||||
dunstify -r 55422 -t 2000 -u low -i ~/.icons/candy-icons/apps/scalable/teamspeak.svg "Gaming power profile deactivated"
|
||||
exit 0
|
||||
else
|
||||
# gaming profile
|
||||
tailor profile set "$GAMING_PROFILE" || failure
|
||||
dunstify -r 55422 -t 2000 -u low -i ~/.icons/candy-icons/apps/scalable/teamspeak.svg "Gaming power profile activated"
|
||||
hyprctl reload
|
||||
exit 0
|
||||
fi
|
||||