From 1fa52fcbbc2590a750f86d43c78b6543957d8933 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 13 Jun 2023 11:13:22 -0400 Subject: [PATCH] Revert "meta: Disable vfr at the gamemode level" This completely broke gamemode notifications. Luckily we're using NixOS so a revert was as easy as `git revert` and `nixos-rebuild`. --- modules/hyprland/default.nix | 1 + src/main.nix | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/modules/hyprland/default.nix b/modules/hyprland/default.nix index f2602dc..5cd8d20 100644 --- a/modules/hyprland/default.nix +++ b/modules/hyprland/default.nix @@ -201,6 +201,7 @@ let VARIABLES = import ../../src/variables.nix; in { animate_manual_resizes = yes animate_mouse_windowdragging = yes focus_on_activate = yes + vfr = no } ''; diff --git a/src/main.nix b/src/main.nix index a05dabe..b8eefc9 100644 --- a/src/main.nix +++ b/src/main.nix @@ -54,14 +54,8 @@ let VARIABLES = import ./variables.nix; in { }; custom = { - start = /* bash */ '' - ${pkgs.hyprland}/bin/hyprctl keyword misc:vfr no - ${pkgs.libnotify}/bin/notify-send 'Note' 'gamemode started from host.' - ''; - end = /* bash */ '' - ${pkgs.hyprland}/bin/hyprctl keyword misc:vfr yes - ${pkgs.libnotify}/bin/notify-send 'Note' 'gamemode ended from host.' - ''; + start = "${pkgs.libnotify}/bin/notify-send 'Note' 'gamemode started.'"; + end = "${pkgs.libnotify}/bin/notify-send 'Note' 'gamemode ended."; }; }; };