From e609e761418d96f06f65457d6f3671f77febbaeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Fri, 10 Apr 2026 00:34:25 +0200 Subject: [PATCH] Fixing theme switch hanging on emacs --- hyprland/scripts/themeswitch.nix | 8 ++++---- modules/common.nix | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hyprland/scripts/themeswitch.nix b/hyprland/scripts/themeswitch.nix index 976c079..c8c681e 100644 --- a/hyprland/scripts/themeswitch.nix +++ b/hyprland/scripts/themeswitch.nix @@ -89,13 +89,13 @@ switch_waybar() { update() { #kitty - pgrep -x kitty >/dev/null && kill -SIGUSR1 $(pgrep -x kitty) + pidof kitty >/dev/null && kill -SIGUSR1 $(pidof kitty) #waybar - pgrep -x waybar >/dev/null && kill -SIGUSR2 $(pgrep -x waybar) + pidof waybar >/dev/null && kill -SIGUSR2 $(pidof waybar) #swaync - pgrep -x swaync >/dev/null && swaync-client --reload-css + swaync-client --reload-css #swayosd killall swayosd-server @@ -123,7 +123,7 @@ switch_swaync "$SELECTED" switch_swayosd "$SELECTED" switch_fuzzel "$SELECTED" switch_emacs "$SELECTED" -update +update && echo test ''; home.file.".config/hypr/hyprland/scripts/themeswitch.sh".force = true; diff --git a/modules/common.nix b/modules/common.nix index 58f628e..8b39d91 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -140,8 +140,6 @@ # Enable touchpad support (enabled default in most desktopManager). libinput.enable = true; - - emacs.enable = true; }; # Configure keymap in X11