init
This commit is contained in:
14
hypr/scripts/gamemode.sh
Executable file
14
hypr/scripts/gamemode.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
|
||||
if [ "$HYPRGAMEMODE" = 1 ] ; then
|
||||
hyprctl --batch "\
|
||||
keyword animations:enabled 0;\
|
||||
keyword decoration:shadow:enabled 0;\
|
||||
keyword decoration:blur:enabled 0;\
|
||||
keyword general:gaps_in 0;\
|
||||
keyword general:gaps_out 0;\
|
||||
keyword general:border_size 1;\
|
||||
keyword decoration:rounding 0"
|
||||
exit
|
||||
fi
|
||||
hyprctl reload
|
18
hypr/scripts/powermenu.sh
Executable file
18
hypr/scripts/powermenu.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
options="Shutdown\nReboot\nLock\nLogout"
|
||||
selected=$(echo -e $options | fuzzel --dmenu --prompt='Power:')
|
||||
|
||||
case $selected in
|
||||
"Shutdown")
|
||||
systemctl poweroff
|
||||
;;
|
||||
"Reboot")
|
||||
systemctl reboot
|
||||
;;
|
||||
"Lock")
|
||||
hyprlock
|
||||
;;
|
||||
"Logout")
|
||||
hyprctl dispatch exit
|
||||
;;
|
||||
esac
|
Reference in New Issue
Block a user