scripts reorganize
This commit is contained in:
15
scripts/hypr-scripts/gamemode_hypr.sh
Executable file
15
scripts/hypr-scripts/gamemode_hypr.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
|
||||
GAMING_PROFILE="GAMEINK"
|
||||
|
||||
if [ "$HYPRGAMEMODE" = "true" ] ; then
|
||||
hyprctl eval 'hl.config({ animations = { enabled = false }, decoration = { blur = { enabled = false}, rounding = 0, shadow = { enabled = false }, fullscreen_opacity = 1}, general = { border_size = 1, gaps_in = 0, gaps_out = 0}})'
|
||||
tailor profile set "$GAMING_PROFILE"
|
||||
dunstify -r 55421 -t 2000 -u low -i ~/.icons/candy-icons/apps/scalable/teamspeak.svg "Gamemode on"
|
||||
exit
|
||||
else
|
||||
dunstify -r 55421 -t 2000 -u low -i ~/.icons/candy-icons/apps/scalable/teamspeak.svg "Gamemode off"
|
||||
hyprctl reload
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user