Commit 00d9f0ac664f

Vincent Demeester <vincent@sbr.pm>
2025-07-21 09:36:57
home/sway: update some rules and add an emacs-anywhere thingy
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 10e30e0
Changed files (1)
home
common
desktop
home/common/desktop/sway/default.nix
@@ -29,6 +29,7 @@ in
     wl-clipboard
     wl-kbptr
     wtype
+    wlprop
 
     zenity
     wofi
@@ -133,7 +134,7 @@ in
           "${mod}+Shift+Return" = "exec emacsclient -c";
           "${mod}+Control+Return" = "exec emacs";
           "${mod}+Control+Shift+Return" = "exec ${emacs-in-folder}";
-          "${mod}+Control+Alt+Return" = "exec emacs"; # TODO: remove this
+          "${mod}+Control+Alt+Return" = "exec emacsclient --eval '(vde/type)'";
 
           "${mod}+Left" = "focus left";
           "${mod}+Down" = "focus down";
@@ -171,6 +172,13 @@ in
           command = "inhibit_idle fullscreen";
           criteria.app_id = "firefox";
         }
+        {
+          command = "floating enable";
+          criteria = {
+            app_id = "emacs";
+            title = "^emacs-float$";
+          };
+        }
         {
           command = "inhibit_idle fullscreen";
           criteria.app_id = "mpv";
@@ -178,7 +186,7 @@ in
         {
           # spotify doesn't set its WM_CLASS until it has mapped, so the assign is not reliable
           command = "move to workspace 10";
-          criteria.class = "Spotify";
+          criteria.app_id = "spotify";
         }
         {
           command = "move to scratchpad, scratchpad show";
@@ -201,7 +209,7 @@ in
         }
         {
           criteria = {
-            class = "pwvucontrol";
+            class = "com.saivert.pwvucontrol";
           };
           command = "floating enable";
         }