added gamemode module waybar
This commit is contained in:
@@ -1 +0,0 @@
|
||||
/dev/dri/pci-0000:01:00.0-card
|
||||
@@ -20,7 +20,7 @@ exec-once = waybar
|
||||
# Load network manager applet
|
||||
# START NM APPLET
|
||||
exec-once = nm-applet --indicator
|
||||
# END NM APPLET
|
||||
|
||||
|
||||
# Start gnome-keyring
|
||||
exec-once = gnome-keyring
|
||||
|
||||
Executable
+14
@@ -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:drop_shadow 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
|
||||
@@ -100,7 +100,7 @@ animations {
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 2, default,
|
||||
animation = workspaces, 1, 2, default
|
||||
}
|
||||
|
||||
dwindle {
|
||||
@@ -118,7 +118,7 @@ gestures {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
workspace_swipe = on
|
||||
workspace_swipe_fingers = 3
|
||||
workspace_swipe_distance = 150
|
||||
workspace_swipe_distance = 500
|
||||
}
|
||||
|
||||
misc {
|
||||
@@ -245,7 +245,27 @@ bind = CTRL ALT, P, exec, nbfc set -f 0 1 -a
|
||||
# Lid Switch
|
||||
bindl=,switch:Lid Switch, exec, hyprlock
|
||||
|
||||
# Gamemode
|
||||
bind = WIN, F1, exec, ~/.config/hypr/gamemode.sh
|
||||
|
||||
# Debug
|
||||
#debug{
|
||||
# overlay = true
|
||||
#}
|
||||
|
||||
# Game Rules
|
||||
# steam
|
||||
windowrulev2 = fullscreen,class:^steam_app\d+$
|
||||
windowrulev2 = monitor 1,class:^steam_app_\d+$
|
||||
windowrulev2 = workspace 10,class:^steam_app_\d+$
|
||||
|
||||
# cyberpunk
|
||||
windowrulev2 = fullscreen,class:(cyberpunk2077.exe)
|
||||
windowrulev2 = monitor 1,class:(cyberpunk2077.exe)
|
||||
windowrulev2 = workspace 10,class:(cyberpunk2077.exe)
|
||||
|
||||
# hollowknight
|
||||
windowrulev2 = fullscreen,class:(hollow_knight.exe)
|
||||
windowrulev2 = monitor 1,class:(hollow_knight.exe)
|
||||
windowrulev2 = workspace 10,class:(hollow_knight.exe)
|
||||
workspace = 10, border:false, rounding:false,gapsin:0,gapsout:0,shadow:false,rounding:false,decorare:false,on-created-empty:bash ~/.config/hypr/gamemode.sh
|
||||
|
||||
Reference in New Issue
Block a user