From cbd69206a3c09296491101486fbb5af029c3f8a2 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Wed, 4 Dec 2024 02:54:40 -0500 Subject: [PATCH] Add back more functions from Sway into Niri, add a standard naming scheme --- .../extras/variables/workspaces/default.nix | 38 ++++----- modules/home/programs/gui/rofi/default.nix | 2 +- modules/home/wms/niri/autostart/default.nix | 4 +- modules/home/wms/niri/default.nix | 3 +- modules/home/wms/niri/programs/default.nix | 6 ++ .../wms/niri/programs/sleep-niri/default.nix | 10 +++ modules/home/wms/niri/rules/default.nix | 10 +++ modules/home/wms/niri/settings/default.nix | 14 ---- modules/home/wms/programs/default.nix | 1 + modules/home/wms/sway/autostart/default.nix | 3 +- modules/home/wms/sway/hotkeys/default.nix | 84 +++++++++---------- modules/home/wms/sway/outputs/default.nix | 38 ++++----- modules/home/wms/sway/programs/default.nix | 6 +- .../{swayshot => screen-sway}/default.nix | 2 +- .../{swaysleep => sleep-sway}/default.nix | 2 +- .../{swaytools => tools-sway}/default.nix | 2 +- modules/home/wms/sway/rules/default.nix | 18 ++-- modules/system/programs/desktops/default.nix | 2 +- 18 files changed, 128 insertions(+), 117 deletions(-) create mode 100644 modules/home/wms/niri/programs/default.nix create mode 100644 modules/home/wms/niri/programs/sleep-niri/default.nix delete mode 100644 modules/home/wms/niri/settings/default.nix rename modules/home/wms/sway/programs/{swayshot => screen-sway}/default.nix (97%) rename modules/home/wms/sway/programs/{swaysleep => sleep-sway}/default.nix (85%) rename modules/home/wms/sway/programs/{swaytools => tools-sway}/default.nix (97%) diff --git a/modules/extras/variables/workspaces/default.nix b/modules/extras/variables/workspaces/default.nix index eb613b2..b428cd5 100644 --- a/modules/extras/variables/workspaces/default.nix +++ b/modules/extras/variables/workspaces/default.nix @@ -6,24 +6,24 @@ }; config.ws = { - w0 = ''0:0''; - w1 = ''1:1''; - w2 = ''2:2''; - w3 = ''3:3''; - w4 = ''4:4''; - w5 = ''5:5''; - w6 = ''6:6''; - w7 = ''7:7''; - w8 = ''8:8''; - w9 = ''9:9''; - w1a = ''11:I''; - w2a = ''22:II''; - w3a = ''33:III''; - w4a = ''44:IV''; - w5a = ''55:V''; - w6a = ''66:VI''; - w7a = ''77:VII''; - w8a = ''88:VIII''; - w9a = ''99:IX''; + w0 = ''0''; + w1 = ''1''; + w2 = ''2''; + w3 = ''3''; + w4 = ''4''; + w5 = ''5''; + w6 = ''6''; + w7 = ''7''; + w8 = ''8''; + w9 = ''9''; + w1a = ''I''; + w2a = ''II''; + w3a = ''III''; + w4a = ''IV''; + w5a = ''V''; + w6a = ''VI''; + w7a = ''VII''; + w8a = ''VIII''; + w9a = ''IX''; }; } diff --git a/modules/home/programs/gui/rofi/default.nix b/modules/home/programs/gui/rofi/default.nix index eff39cc..87887eb 100644 --- a/modules/home/programs/gui/rofi/default.nix +++ b/modules/home/programs/gui/rofi/default.nix @@ -143,7 +143,7 @@ case $POWER in Shutdown) poweroff;; Reboot) reboot;; - Sleep) swaysleep &;; + Sleep) sleep-$XDG_CURRENT_DESKTOP &;; Lock) swaylock &;; Kill) pkill -9 $XDG_CURRENT_DESKTOP;; esac diff --git a/modules/home/wms/niri/autostart/default.nix b/modules/home/wms/niri/autostart/default.nix index f59af58..f0e048a 100644 --- a/modules/home/wms/niri/autostart/default.nix +++ b/modules/home/wms/niri/autostart/default.nix @@ -6,12 +6,12 @@ // Daemons and tray apps spawn-at-startup "hyprpaper" - spawn-at-startup "wl-paste" "-t" "text --watch clipman store -P" + spawn-at-startup "wl-paste" "-t" "text" "--watch" "clipman" "store" "-P" spawn-at-startup "wl-copy" spawn-at-startup "mako" spawn-at-startup "sunshine" + spawn-at-startup "xwayland-satellite" spawn-at-startup "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1" - spawn-at-startup "${pkgs.xwayland-satellite}/bin/xwayland-satellite" // Foreground apps spawn-at-startup "librewolf" "-p" "Misc" "--name" "MiscBrowser" diff --git a/modules/home/wms/niri/default.nix b/modules/home/wms/niri/default.nix index 2061ab5..58a231f 100644 --- a/modules/home/wms/niri/default.nix +++ b/modules/home/wms/niri/default.nix @@ -5,8 +5,8 @@ ./hotkeys ./inputs ./outputs + ./programs ./rules - ./settings ./theme ]; @@ -16,7 +16,6 @@ ${builtins.readFile config.home.niri.settings.inputs} ${builtins.readFile config.home.niri.settings.outputs} ${builtins.readFile config.home.niri.settings.rules} - ${builtins.readFile config.home.niri.settings.settings} ${builtins.readFile config.home.niri.settings.theme} ''; } diff --git a/modules/home/wms/niri/programs/default.nix b/modules/home/wms/niri/programs/default.nix new file mode 100644 index 0000000..018f7aa --- /dev/null +++ b/modules/home/wms/niri/programs/default.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: +{ + imports = [ + ./sleep-niri + ]; +} diff --git a/modules/home/wms/niri/programs/sleep-niri/default.nix b/modules/home/wms/niri/programs/sleep-niri/default.nix new file mode 100644 index 0000000..c0521c6 --- /dev/null +++ b/modules/home/wms/niri/programs/sleep-niri/default.nix @@ -0,0 +1,10 @@ +{ pkgs, config, ... }: +{ + home.packages = with pkgs; [ + (pkgs.writeScriptBin "sleep-niri" '' + swaylock & ${pkgs.swayidle}/bin/swayidle -w \ + timeout 1 'niri msg action power-off-monitors' \ + resume 'niri msg action power-on-monitors; pkill -9 swayidle' + '') + ]; +} diff --git a/modules/home/wms/niri/rules/default.nix b/modules/home/wms/niri/rules/default.nix index a5477b2..db8ffcc 100644 --- a/modules/home/wms/niri/rules/default.nix +++ b/modules/home/wms/niri/rules/default.nix @@ -38,5 +38,15 @@ match app-id="com.obsproject.Studio" open-on-workspace "${config.ws.w4a}" } + + screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" + + hotkey-overlay { + skip-at-startup + } + + environment { + DISPLAY ":0" + } ''; } diff --git a/modules/home/wms/niri/settings/default.nix b/modules/home/wms/niri/settings/default.nix deleted file mode 100644 index 348f398..0000000 --- a/modules/home/wms/niri/settings/default.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ pkgs, ... }: -{ - config.home.niri.settings.settings = pkgs.writeText "settings" '' - screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" - - hotkey-overlay { - skip-at-startup - } - - environment { - DISPLAY ":0" - } - ''; -} diff --git a/modules/home/wms/programs/default.nix b/modules/home/wms/programs/default.nix index 52a4c3b..312bd4e 100644 --- a/modules/home/wms/programs/default.nix +++ b/modules/home/wms/programs/default.nix @@ -16,6 +16,7 @@ slurp wl-clipboard wdisplays + xwayland-satellite jq ]; } diff --git a/modules/home/wms/sway/autostart/default.nix b/modules/home/wms/sway/autostart/default.nix index 12988dd..a0fb69b 100644 --- a/modules/home/wms/sway/autostart/default.nix +++ b/modules/home/wms/sway/autostart/default.nix @@ -15,8 +15,7 @@ { command = "wl-copy"; } { command = "mako"; } { command = "sunshine"; } - - # Polkit agent + { command = "xwayland-satellite"; } { command = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1"; } # Foreground apps diff --git a/modules/home/wms/sway/hotkeys/default.nix b/modules/home/wms/sway/hotkeys/default.nix index b557696..91485b5 100644 --- a/modules/home/wms/sway/hotkeys/default.nix +++ b/modules/home/wms/sway/hotkeys/default.nix @@ -26,7 +26,7 @@ "${primeMod}+x" = ''exec rofiscripts --power''; "${primeMod}+b" = ''exec pkill -USR1 waybar''; "${primeMod}+Return" = ''exec foot''; - "${primeMod}+Escape" = ''exec swaytools --kill''; + "${primeMod}+Escape" = ''exec tools-sway --kill''; # Mod + shift + key "${primeMod}+Shift+s" = ''exec rofi -show drun -modi drun -drun-display-format {name} -show-icons -disable-history''; @@ -36,7 +36,7 @@ "${primeMod}+Shift+Return" = ''exec foot ranger''; # Mod + ctrl + key - "${primeMod}+Ctrl+x" = ''exec swaytools --prop''; + "${primeMod}+Ctrl+x" = ''exec tools-sway --prop''; "${primeMod}+Ctrl+s" = ''exec rofiscripts --scratchpads''; "${primeMod}+Ctrl+c" = ''exec wlpicker && notify-send "Color copied to clipboard"''; @@ -61,8 +61,8 @@ "${primeMod}+Ctrl+n" = ''exec makoctl dismiss -a''; # Screenshots - "${secMod}+f" = ''exec swayshot --swappy''; - "${secMod}+Shift+f" = ''exec swayshot --screen''; + "${secMod}+f" = ''exec screen-sway --swappy''; + "${secMod}+Shift+f" = ''exec screen-sway --screen''; # Display and keyboard brightness "${primeMod}+equal" = ''exec light -A 5''; @@ -77,50 +77,50 @@ "${primeMod}+Shift+r" = ''reload''; # Switch to workspaces - "${primeMod}+grave" = ''workspace ${config.ws.w0}''; - "${primeMod}+1" = ''workspace ${config.ws.w1}''; - "${primeMod}+2" = ''workspace ${config.ws.w2}''; - "${primeMod}+3" = ''workspace ${config.ws.w3}''; - "${primeMod}+4" = ''workspace ${config.ws.w4}''; - "${primeMod}+5" = ''workspace ${config.ws.w5}''; - "${primeMod}+6" = ''workspace ${config.ws.w6}''; - "${primeMod}+7" = ''workspace ${config.ws.w7}''; - "${primeMod}+8" = ''workspace ${config.ws.w8}''; - "${primeMod}+9" = ''workspace ${config.ws.w9}''; + "${primeMod}+grave" = ''workspace 0:${config.ws.w0}''; + "${primeMod}+1" = ''workspace 1:${config.ws.w1}''; + "${primeMod}+2" = ''workspace 2:${config.ws.w2}''; + "${primeMod}+3" = ''workspace 3:${config.ws.w3}''; + "${primeMod}+4" = ''workspace 4:${config.ws.w4}''; + "${primeMod}+5" = ''workspace 5:${config.ws.w5}''; + "${primeMod}+6" = ''workspace 6:${config.ws.w6}''; + "${primeMod}+7" = ''workspace 7:${config.ws.w7}''; + "${primeMod}+8" = ''workspace 8:${config.ws.w8}''; + "${primeMod}+9" = ''workspace 9:${config.ws.w9}''; # Switch to alternate workspaces - "${secMod}+F1" = ''workspace ${config.ws.w1a}''; - "${secMod}+F2" = ''workspace ${config.ws.w2a}''; - "${secMod}+F3" = ''workspace ${config.ws.w3a}''; - "${secMod}+F4" = ''workspace ${config.ws.w4a}''; - "${secMod}+F5" = ''workspace ${config.ws.w5a}''; - "${secMod}+F6" = ''workspace ${config.ws.w6a}''; - "${secMod}+F7" = ''workspace ${config.ws.w7a}''; - "${secMod}+F8" = ''workspace ${config.ws.w8a}''; - "${secMod}+F9" = ''workspace ${config.ws.w9a}''; + "${secMod}+F1" = ''workspace 11:${config.ws.w1a}''; + "${secMod}+F2" = ''workspace 22:${config.ws.w2a}''; + "${secMod}+F3" = ''workspace 33:${config.ws.w3a}''; + "${secMod}+F4" = ''workspace 44:${config.ws.w4a}''; + "${secMod}+F5" = ''workspace 55:${config.ws.w5a}''; + "${secMod}+F6" = ''workspace 66:${config.ws.w6a}''; + "${secMod}+F7" = ''workspace 77:${config.ws.w7a}''; + "${secMod}+F8" = ''workspace 88:${config.ws.w8a}''; + "${secMod}+F9" = ''workspace 99:${config.ws.w9a}''; # Move window to and focus workspace - "${primeMod}+Shift+grave" = ''move container to workspace ${config.ws.w0}; workspace ${config.ws.w0}''; - "${primeMod}+Shift+1" = ''move container to workspace ${config.ws.w1}; workspace ${config.ws.w1}''; - "${primeMod}+Shift+2" = ''move container to workspace ${config.ws.w2}; workspace ${config.ws.w2}''; - "${primeMod}+Shift+3" = ''move container to workspace ${config.ws.w3}; workspace ${config.ws.w3}''; - "${primeMod}+Shift+4" = ''move container to workspace ${config.ws.w4}; workspace ${config.ws.w4}''; - "${primeMod}+Shift+5" = ''move container to workspace ${config.ws.w5}; workspace ${config.ws.w5}''; - "${primeMod}+Shift+6" = ''move container to workspace ${config.ws.w6}; workspace ${config.ws.w6}''; - "${primeMod}+Shift+7" = ''move container to workspace ${config.ws.w7}; workspace ${config.ws.w7}''; - "${primeMod}+Shift+8" = ''move container to workspace ${config.ws.w8}; workspace ${config.ws.w8}''; - "${primeMod}+Shift+9" = ''move container to workspace ${config.ws.w9}; workspace ${config.ws.w9}''; + "${primeMod}+Shift+grave" = ''move container to workspace 0:${config.ws.w0}; workspace 0:${config.ws.w0}''; + "${primeMod}+Shift+1" = ''move container to workspace 1:${config.ws.w1}; workspace 1:${config.ws.w1}''; + "${primeMod}+Shift+2" = ''move container to workspace 2:${config.ws.w2}; workspace 2:${config.ws.w2}''; + "${primeMod}+Shift+3" = ''move container to workspace 3:${config.ws.w3}; workspace 3:${config.ws.w3}''; + "${primeMod}+Shift+4" = ''move container to workspace 4:${config.ws.w4}; workspace 4:${config.ws.w4}''; + "${primeMod}+Shift+5" = ''move container to workspace 5:${config.ws.w5}; workspace 5:${config.ws.w5}''; + "${primeMod}+Shift+6" = ''move container to workspace 6:${config.ws.w6}; workspace 6:${config.ws.w6}''; + "${primeMod}+Shift+7" = ''move container to workspace 7:${config.ws.w7}; workspace 7:${config.ws.w7}''; + "${primeMod}+Shift+8" = ''move container to workspace 8:${config.ws.w8}; workspace 8:${config.ws.w8}''; + "${primeMod}+Shift+9" = ''move container to workspace 9:${config.ws.w9}; workspace 9:${config.ws.w9}''; # Move window to and focus alternate workspace - "${secMod}+Shift+F1" = ''move container to workspace ${config.ws.w1a}; workspace ${config.ws.w1a}''; - "${secMod}+Shift+F2" = ''move container to workspace ${config.ws.w2a}; workspace ${config.ws.w2a}''; - "${secMod}+Shift+F3" = ''move container to workspace ${config.ws.w3a}; workspace ${config.ws.w3a}''; - "${secMod}+Shift+F4" = ''move container to workspace ${config.ws.w4a}; workspace ${config.ws.w4a}''; - "${secMod}+Shift+F5" = ''move container to workspace ${config.ws.w5a}; workspace ${config.ws.w5a}''; - "${secMod}+Shift+F6" = ''move container to workspace ${config.ws.w6a}; workspace ${config.ws.w6a}''; - "${secMod}+Shift+F7" = ''move container to workspace ${config.ws.w7a}; workspace ${config.ws.w7a}''; - "${secMod}+Shift+F8" = ''move container to workspace ${config.ws.w8a}; workspace ${config.ws.w8a}''; - "${secMod}+Shift+F9" = ''move container to workspace ${config.ws.w9a}; workspace ${config.ws.w9a}''; + "${secMod}+Shift+F1" = ''move container to workspace 11:${config.ws.w1a}; workspace 11:${config.ws.w1a}''; + "${secMod}+Shift+F2" = ''move container to workspace 22:${config.ws.w2a}; workspace 22:${config.ws.w2a}''; + "${secMod}+Shift+F3" = ''move container to workspace 33:${config.ws.w3a}; workspace 33:${config.ws.w3a}''; + "${secMod}+Shift+F4" = ''move container to workspace 44:${config.ws.w4a}; workspace 44:${config.ws.w4a}''; + "${secMod}+Shift+F5" = ''move container to workspace 55:${config.ws.w5a}; workspace 55:${config.ws.w5a}''; + "${secMod}+Shift+F6" = ''move container to workspace 66:${config.ws.w6a}; workspace 66:${config.ws.w6a}''; + "${secMod}+Shift+F7" = ''move container to workspace 77:${config.ws.w7a}; workspace 77:${config.ws.w7a}''; + "${secMod}+Shift+F8" = ''move container to workspace 88:${config.ws.w8a}; workspace 88:${config.ws.w8a}''; + "${secMod}+Shift+F9" = ''move container to workspace 99:${config.ws.w9a}; workspace 99:${config.ws.w9a}''; # Change focused window "${primeMod}+h" = ''focus left''; diff --git a/modules/home/wms/sway/outputs/default.nix b/modules/home/wms/sway/outputs/default.nix index 75ae87e..b8baf34 100644 --- a/modules/home/wms/sway/outputs/default.nix +++ b/modules/home/wms/sway/outputs/default.nix @@ -4,31 +4,31 @@ wayland.windowManager.sway.config = { workspaceOutputAssign = let workspaces1 = [ - "${config.ws.w0}" - "${config.ws.w1}" - "${config.ws.w2}" - "${config.ws.w3}" - "${config.ws.w1a}" - "${config.ws.w2a}" - "${config.ws.w3a}" + "0:${config.ws.w0}" + "1:${config.ws.w1}" + "2:${config.ws.w2}" + "3:${config.ws.w3}" + "11:${config.ws.w1a}" + "22:${config.ws.w2a}" + "33:${config.ws.w3a}" ]; workspaces2 = [ - "${config.ws.w4}" - "${config.ws.w5}" - "${config.ws.w6}" - "${config.ws.w4a}" - "${config.ws.w5a}" + "4:${config.ws.w4}" + "5:${config.ws.w5}" + "6:${config.ws.w6}" + "44:${config.ws.w4a}" + "55:${config.ws.w5a}" ]; workspaces3 = [ - "${config.ws.w7}" - "${config.ws.w8}" - "${config.ws.w9}" - "${config.ws.w7a}" - "${config.ws.w8a}" + "7:${config.ws.w7}" + "8:${config.ws.w8}" + "9:${config.ws.w9}" + "77:${config.ws.w7a}" + "88:${config.ws.w8a}" ]; workspaces4 = [ - "${config.ws.w6a}" - "${config.ws.w9a}" + "66:${config.ws.w6a}" + "99:${config.ws.w9a}" ]; assign = output: workspaces: map (workspace: { diff --git a/modules/home/wms/sway/programs/default.nix b/modules/home/wms/sway/programs/default.nix index 1df6af5..1b89325 100644 --- a/modules/home/wms/sway/programs/default.nix +++ b/modules/home/wms/sway/programs/default.nix @@ -1,8 +1,8 @@ { pkgs, ... }: { imports = [ - ./swayshot - ./swaysleep - ./swaytools + ./screen-sway + ./sleep-sway + ./tools-sway ]; } diff --git a/modules/home/wms/sway/programs/swayshot/default.nix b/modules/home/wms/sway/programs/screen-sway/default.nix similarity index 97% rename from modules/home/wms/sway/programs/swayshot/default.nix rename to modules/home/wms/sway/programs/screen-sway/default.nix index 764fd3c..9018293 100644 --- a/modules/home/wms/sway/programs/swayshot/default.nix +++ b/modules/home/wms/sway/programs/screen-sway/default.nix @@ -1,7 +1,7 @@ { pkgs, config, ... }: { home.packages = with pkgs; [ - (pkgs.writeScriptBin "swayshot" '' + (pkgs.writeScriptBin "screen-sway" '' swappy() { # Create an imv window to act as a static screen grim -t jpeg -q 90 - | imv -w "GlobalShot" - & imv_pid=$! diff --git a/modules/home/wms/sway/programs/swaysleep/default.nix b/modules/home/wms/sway/programs/sleep-sway/default.nix similarity index 85% rename from modules/home/wms/sway/programs/swaysleep/default.nix rename to modules/home/wms/sway/programs/sleep-sway/default.nix index b380275..ef390bf 100644 --- a/modules/home/wms/sway/programs/swaysleep/default.nix +++ b/modules/home/wms/sway/programs/sleep-sway/default.nix @@ -1,7 +1,7 @@ { pkgs, config, ... }: { home.packages = with pkgs; [ - (pkgs.writeScriptBin "swaysleep" '' + (pkgs.writeScriptBin "sleep-sway" '' swaylock & ${pkgs.swayidle}/bin/swayidle -w \ timeout 1 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"; pkill -9 swayidle' diff --git a/modules/home/wms/sway/programs/swaytools/default.nix b/modules/home/wms/sway/programs/tools-sway/default.nix similarity index 97% rename from modules/home/wms/sway/programs/swaytools/default.nix rename to modules/home/wms/sway/programs/tools-sway/default.nix index 56f4145..c7186f5 100644 --- a/modules/home/wms/sway/programs/swaytools/default.nix +++ b/modules/home/wms/sway/programs/tools-sway/default.nix @@ -1,7 +1,7 @@ { pkgs, config, ... }: { home.packages = with pkgs; [ - (pkgs.writeScriptBin "swaytools" '' + (pkgs.writeScriptBin "tools-sway" '' # List the app name and whether or not it uses wayland prop() { selected_window=$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | "\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)"' | slurp -r -c ${config.look.colors.prime} -B 00000066 -b 00000000) diff --git a/modules/home/wms/sway/rules/default.nix b/modules/home/wms/sway/rules/default.nix index 3a8d2db..9c89d64 100644 --- a/modules/home/wms/sway/rules/default.nix +++ b/modules/home/wms/sway/rules/default.nix @@ -1,7 +1,7 @@ { config, ... }: { wayland.windowManager.sway.config = { - defaultWorkspace = config.ws.w1; + defaultWorkspace = "1:${config.ws.w1}"; window = { border = config.look.border.int; @@ -64,28 +64,28 @@ }; assigns = { # Browsers - "${config.ws.w1}" = [{ app_id = "MainBrowser"; }]; - "${config.ws.w1a}" = [{ app_id = "AltBrowser"; }]; + "1:${config.ws.w1}" = [{ app_id = "MainBrowser"; }]; + "11:${config.ws.w1a}" = [{ app_id = "AltBrowser"; }]; # Communication - "${config.ws.w7}" = [ + "7:${config.ws.w7}" = [ { app_id = "MiscBrowser"; } { app_id = "vesktop"; } { class = "vesktop"; } ]; - "${config.ws.w8}" = [ + "8:${config.ws.w8}" = [ { app_id = "org.gnome.Fractal"; } { app_id = "org.telegram.desktop"; } ]; - "${config.ws.w9}" = [{ app_id = "thunderbird"; }]; + "9:${config.ws.w9}" = [{ app_id = "thunderbird"; }]; # Etc - "${config.ws.w2}" = [ + "2:${config.ws.w2}" = [ { class = "steam"; } { app_id = "heroic"; } ]; - "${config.ws.w2a}" = [{ app_id = "looking-glass-client"; }]; - "${config.ws.w4a}" = [{ app_id = "com.obsproject.Studio"; }]; + "22:${config.ws.w2a}" = [{ app_id = "looking-glass-client"; }]; + "44:${config.ws.w4a}" = [{ app_id = "com.obsproject.Studio"; }]; }; focus.newWindow = "focus"; }; diff --git a/modules/system/programs/desktops/default.nix b/modules/system/programs/desktops/default.nix index c85e0a8..3b0b672 100644 --- a/modules/system/programs/desktops/default.nix +++ b/modules/system/programs/desktops/default.nix @@ -3,7 +3,7 @@ programs = { sway.enable = config.system.desktop.enable; niri.enable = config.system.desktop.enable; - xwayland.enable = lib.mkForce config.system.desktop.enable; + xwayland.enable = false; }; services.dbus.enable = config.system.desktop.enable;