1
0
mirror of https://github.com/Andrey0189/nixos-config-reborn.git synced 2025-09-15 10:06:00 +03:00

no gamemode

This commit is contained in:
andrey_varnavskiy
2024-12-15 04:56:05 +05:00
parent 5156f4c410
commit 6e7c7cccef

View File

@@ -1,21 +1,4 @@
{ pkgs, ... }: {
let
gamemode = pkgs.writeShellScriptBin "gamemode" ''
#!/bin/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 decoration:rounding 0"
exit
fi
hyprctl reload
'';
in {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
bind = [ bind = [
"$mainMod SHIFT, Return, exec, $terminal" "$mainMod SHIFT, Return, exec, $terminal"
@@ -32,7 +15,7 @@ in {
"$mainMod SHIFT, B, exec, pkill -SIGUSR1 waybar" "$mainMod SHIFT, B, exec, pkill -SIGUSR1 waybar"
"$mainMod, L, exec, loginctl lock-session" "$mainMod, L, exec, loginctl lock-session"
"$mainMod, P, exec, hyprpicker -an" "$mainMod, P, exec, hyprpicker -an"
"$mainMod, G, exec, ${gamemode}/bin/gamemode" "$mainMod, N, exec, swaync-client -t"
", Print, exec, grimblast --notify --freeze copysave area" ", Print, exec, grimblast --notify --freeze copysave area"
# Moving focus # Moving focus