i3 worked!
This commit is contained in:
parent
d81ea35db9
commit
940c53192b
7 changed files with 73 additions and 69 deletions
|
|
@ -55,8 +55,8 @@
|
|||
common.nixosModules.git
|
||||
common.nixosModules.tmux
|
||||
common.nixosModules.boot_systemd
|
||||
common.nixosModules.de_sway
|
||||
# common.nixosModules.de_i3
|
||||
# common.nixosModules.de_sway
|
||||
common.nixosModules.de_i3
|
||||
common.nixosModules.hardening
|
||||
common.nixosModules.jetbrains_font
|
||||
common.nixosModules.nix_options
|
||||
|
|
@ -73,8 +73,8 @@
|
|||
(import ./containers.nix { inherit inputs; })
|
||||
# ./jails_text.nix
|
||||
# ./hyprland_customizations.nix
|
||||
./sway_customizations.nix
|
||||
# ./i3_customizations.nix
|
||||
# ./sway_customizations.nix
|
||||
./i3_customizations.nix
|
||||
./opencode-shim.nix
|
||||
(
|
||||
{
|
||||
|
|
@ -97,14 +97,15 @@
|
|||
}) (lib.filterAttrs (name: user: user.isNormalUser or false) users.users);
|
||||
|
||||
sharedModules = [
|
||||
common.homeManagerModules.de_sway
|
||||
# common.homeManagerModules.de_i3
|
||||
# common.homeManagerModules.de_sway
|
||||
common.homeManagerModules.de_i3
|
||||
common.homeManagerModules.tmux
|
||||
common.homeManagerModules.atuin
|
||||
common.homeManagerModules.direnv
|
||||
common.homeManagerModules.foot
|
||||
common.homeManagerModules.git
|
||||
common.homeManagerModules.kitty
|
||||
common.homeManagerModules.launcher_rofi
|
||||
common.homeManagerModules.postgres_cli_options
|
||||
common.homeManagerModules.slicer
|
||||
common.homeManagerModules.ssh
|
||||
|
|
|
|||
|
|
@ -14,17 +14,14 @@ let
|
|||
'';
|
||||
bg1 = ../_shared_assets/wallpapers/pixel_neon.png;
|
||||
bg2 = ../_shared_assets/wallpapers/pixel_neon_v.png;
|
||||
xrSetup = ''
|
||||
xrandr --output DP-1 --mode 3840x2160 --rate 97.983 --pos 0x0 --primary
|
||||
xrandr --output DP-2 --mode 3440x1440 --rate 99.982 --rotate left --left-of DP-1
|
||||
'';
|
||||
fehCmd = "feh --bg-fill ${bg1} ${bg2}";
|
||||
startupCmd = "sh -c 'sleep 0.05; i3-msg workspace number 7; sleep 0.05; i3-msg workspace number 1'";
|
||||
xrSetup = "xrandr --output DP-1 --mode 3840x2160 --rate 97.983 --pos 0x0 --primary; xrandr --output DP-2 --mode 3440x1440 --rate 99.982 --rotate left --left-of DP-1";
|
||||
xwallpaperCmd = "xwallpaper --output DP-1 --zoom ${bg1} --output DP-2 --zoom ${bg2}";
|
||||
startupCmd = "sh -c 'sleep 0.2; i3-msg workspace number 7; sleep 0.2; i3-msg workspace number 1'";
|
||||
i3ExtraOptions = {
|
||||
startup = [
|
||||
{ command = "exec --no-startup-id ${fehCmd}"; }
|
||||
{ command = "exec --no-startup-id ${xrSetup}"; }
|
||||
{ command = "exec --no-startup-id ${startupCmd}"; }
|
||||
{ command = "${xrSetup}"; }
|
||||
{ command = "sh -c 'sleep 0.5; ${xwallpaperCmd}'"; }
|
||||
{ command = "${startupCmd}"; }
|
||||
];
|
||||
};
|
||||
in
|
||||
|
|
@ -33,11 +30,15 @@ in
|
|||
config = {
|
||||
home-manager.sharedModules = [
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
# xsession.windowManager.i3.config = i3ExtraOptions;
|
||||
# xsession.windowManager.i3.extraConfig = assignLines;
|
||||
}
|
||||
{ lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib) mkAfter;
|
||||
in
|
||||
{
|
||||
xsession.windowManager.i3.config.startup = mkAfter i3ExtraOptions.startup;
|
||||
xsession.windowManager.i3.extraConfig = mkAfter assignLines;
|
||||
home.packages = [ pkgs.xwallpaper pkgs.xorg.xrandr ];
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue