From 794f868933a7a0ac94a4a6ba63f69f7543cdd4fc Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 19 May 2024 15:58:50 +0530 Subject: [PATCH] run swaync-client from hyprlanda and use waybar only for dnd --- home/wm/addon/swaync/default.nix | 2 +- home/wm/addon/waybar/default.nix | 4 +--- home/wm/hyprland/default.nix | 2 ++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/home/wm/addon/swaync/default.nix b/home/wm/addon/swaync/default.nix index e631a44..f0de2ba 100644 --- a/home/wm/addon/swaync/default.nix +++ b/home/wm/addon/swaync/default.nix @@ -8,7 +8,7 @@ control-center-margin-top = 0; control-center-margin-bottom = 0; control-center-margin-right = 0; - control-center-margin-left= 0; + control-center-margin-left = 0; control-center-layer = "overlay"; timeout = 10; timeout-low = 5; diff --git a/home/wm/addon/waybar/default.nix b/home/wm/addon/waybar/default.nix index f829390..c8da0c0 100644 --- a/home/wm/addon/waybar/default.nix +++ b/home/wm/addon/waybar/default.nix @@ -92,9 +92,7 @@ }; return-type = "json"; exec = "${swaync-client} -swb"; - on-click = "${swaync-client} -t -sw"; - on-click-right = "${swaync-client} -d -sw"; - escape = true; + on-click = "${swaync-client} -d -sw"; }; }; }; diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index b7a127d..c06235b 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -13,6 +13,7 @@ let loginctl = "${pkgs.systemd}/bin/loginctl"; playerctl = "${pkgs.playerctl}/bin/playerctl"; rofi = "${config.programs.rofi.package}/bin/rofi"; + swaync-client = "${pkgs.swaynotificationcenter}/bin/swaync-client"; tmux = "${config.programs.tmux.package}/bin/tmux"; wpctl = "${pkgs.wireplumber}/bin/wpctl"; yazi = "${pkgs.yazi}/bin/yazi"; @@ -166,6 +167,7 @@ in "SUPER_SHIFT,Return, exec, ${kitty}" "SUPER,d, exec, ${rofi} -show drun" "SUPER,e, exec, ${kitty} --class=yazi ${yazi}" + "SUPER_SHIFT,u, exec, ${swaync-client} -t -sw" "SUPER,i, exec, ${firefox}" "SUPER_SHIFT,i, exec, ${librewolf}"