summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-08-01 16:27:01 +0200
committerAlan Pearce2023-08-01 16:27:01 +0200
commitb77835e16f91967281209d1c30605207f126dd72 (patch)
treedcc39932011d332606860ea5a02050f42ca2c480
parentf6dd29fb7b85c0ab069b3d5f2173adf34a410e88 (diff)
downloadnixfiles-b77835e16f91967281209d1c30605207f126dd72.tar.lz
nixfiles-b77835e16f91967281209d1c30605207f126dd72.tar.zst
nixfiles-b77835e16f91967281209d1c30605207f126dd72.zip
Make i3 window-workspace assignments system-specific
-rw-r--r--system/satoshipad.nix10
-rw-r--r--user/settings/i3.nix7
2 files changed, 10 insertions, 7 deletions
diff --git a/system/satoshipad.nix b/system/satoshipad.nix
index d3f4c1a0..662d3359 100644
--- a/system/satoshipad.nix
+++ b/system/satoshipad.nix
@@ -43,5 +43,15 @@
   networking.hostName = "satoshipad";
   services.avahi.hostName = "alan-satoshipay";
 
+  xsession.windowManager.i3.config = {
+    assigns = {
+      "1" = [{ class = "^Ripcord$"; }];
+      "3" = [{ class = "^Firefox Developer Edition$"; }];
+      "8" = [{ class = "^Emacs$"; }];
+      "9" = [{ class = "\.exe$"; }];
+      "10" = [{ class = "^Barrier$"; }];
+    };
+  };
+
   system.stateVersion = "18.03";
 }
diff --git a/user/settings/i3.nix b/user/settings/i3.nix
index 6265e764..79a7811d 100644
--- a/user/settings/i3.nix
+++ b/user/settings/i3.nix
@@ -17,13 +17,6 @@
       enable = true;
       config = {
         modifier = mod;
-        assigns = {
-          "1" = [{ class = "^Ripcord$"; }];
-          "3" = [{ class = "^Firefox Developer Edition$"; }];
-          "8" = [{ class = "^Emacs$"; }];
-          "9" = [{ class = "\.exe$"; }];
-          "10" = [{ class = "^Barrier$"; }];
-        };
         floating = {
           criteria = [
             { class = "Pinentry$"; }