From 88615faff0ac7bb06d57257d4cabab1f795451fa Mon Sep 17 00:00:00 2001 From: Jacob Bachmann Date: Tue, 12 Dec 2023 11:43:37 +0100 Subject: [PATCH] feat: change initial workspace to 1 for sway and i3 --- flake.nix | 3 +++ users/gandalf/modules/gui/i3/default.nix | 3 +++ users/gandalf/modules/gui/sway/default.nix | 2 ++ 3 files changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index d1edccb..f31cba0 100644 --- a/flake.nix +++ b/flake.nix @@ -2,6 +2,9 @@ description = "Nix los hier"; inputs = { + # TODO enable ability to switch between stable and unstable + # TODO enable ability to include or exclude unfree software + #nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05"; #nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; diff --git a/users/gandalf/modules/gui/i3/default.nix b/users/gandalf/modules/gui/i3/default.nix index a19cc29..7b17b79 100644 --- a/users/gandalf/modules/gui/i3/default.nix +++ b/users/gandalf/modules/gui/i3/default.nix @@ -183,5 +183,8 @@ in { "${cfg.modifier}+Shift+a" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw"; }; }; + extraConfig = '' + exec --no-startup-id ${pkgs.i3}/bin/i3-msg 'workspace 1' + ''; }; } diff --git a/users/gandalf/modules/gui/sway/default.nix b/users/gandalf/modules/gui/sway/default.nix index 4567b21..cf2d702 100644 --- a/users/gandalf/modules/gui/sway/default.nix +++ b/users/gandalf/modules/gui/sway/default.nix @@ -310,6 +310,8 @@ in bindsym ${cfg.modifier}+grave exec swaymsg '[app_id="$ddterm-id"] scratchpad show' || $ddterm && sleep .1 && swaymsg '[app_id="$ddterm-id"] $ddterm-resize' bindsym ${cfg.modifier}+Escape exec swaymsg '[app_id="$ddterm-id"] scratchpad show' || $ddterm && sleep .1 && swaymsg '[app_id="$ddterm-id"] $ddterm-resize' # ^-- resize again, case moving to different output + + workspace 1 ''; };