From cab95903055bf9b75542f06a1b4f2b7664f2bda8 Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 20 May 2024 21:17:46 -0500 Subject: [PATCH] Switched over to element --- profiles/work/home.nix | 2 +- user/wm/hyprland/hyprland.nix | 24 ++++++++++++++---------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/profiles/work/home.nix b/profiles/work/home.nix index 93508ad..96c8ec0 100644 --- a/profiles/work/home.nix +++ b/profiles/work/home.nix @@ -58,7 +58,7 @@ protonmail-bridge texliveSmall numbat - fluffychat + element-desktop-wayland wine bottles diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index 07e93f4..d7d27a3 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -199,7 +199,7 @@ bind=SUPER,N,exec,pypr toggle numbat && hyprctl dispatch bringactivetotop bind=SUPER,M,exec,pypr toggle musikcube && hyprctl dispatch bringactivetotop bind=SUPER,B,exec,pypr toggle btm && hyprctl dispatch bringactivetotop - bind=SUPER,D,exec,pypr toggle matrix && hyprctl dispatch bringactivetotop + bind=SUPER,D,exec,hypr-element bind=SUPER,code:172,exec,pypr toggle pavucontrol && hyprctl dispatch bringactivetotop $scratchpadsize = size 80% 85% @@ -209,10 +209,9 @@ windowrulev2 = workspace special silent,$scratchpad windowrulev2 = center,$scratchpad - windowrulev2 = float,class:^(fluffychat)$ - windowrulev2 = size 85% 90%,class:^(fluffychat)$ - windowrulev2 = workspace special silent,class:^(fluffychat)$ - windowrulev2 = center,class:^(fluffychat)$ + windowrulev2 = float,class:^(Element)$ + windowrulev2 = size 85% 90%,class:^(Element)$ + windowrulev2 = center,class:^(Element)$ $savetodisk = title:^(Save to Disk)$ windowrulev2 = float,$savetodisk @@ -237,7 +236,7 @@ windowrulev2 = opacity 0.80,title:ORUI windowrulev2 = opacity 1.0,class:^(org.qutebrowser.qutebrowser),fullscreen:1 - windowrulev2 = opacity 0.90,class:^(fluffychat)$ + windowrulev2 = opacity 0.90,class:^(Element)$ windowrulev2 = opacity 1.0,class:^(Brave-browser),fullscreen:1 windowrulev2 = opacity 1.0,class:^(librewolf),fullscreen:1 windowrulev2 = opacity 0.80,title:^(LibreWolf)$ @@ -405,6 +404,15 @@ nwg-dock-hyprland -f -x -i 64 -nolauncher -a start -ml 8 -mr 8 -mb 8 fi '') + (pkgs.writeScriptBin "hypr-element" '' + #!/bin/sh + if hyprctl clients | grep "class: Element" > /dev/null + then + hyprctl dispatch closewindow Element + else + element-desktop + fi + '') (pkgs.writeScriptBin "sct" '' #!/bin/sh killall wlsunset &> /dev/null; @@ -623,10 +631,6 @@ command = "alacritty --class scratchpad -e btm" margin = 50 - [scratchpads.matrix] - command = "fluffychat" - margin = 50 - [scratchpads.pavucontrol] command = "pavucontrol" margin = 50