use sway for now since hyprland crashes with kvm switch
This commit is contained in:
parent
00a045d0c1
commit
566d709ca8
15 changed files with 739 additions and 3 deletions
|
|
@ -41,6 +41,7 @@
|
|||
(import ./containers.nix { inherit inputs; })
|
||||
# ./jails_text.nix
|
||||
./hyprland_customizations.nix
|
||||
./sway_customizations.nix
|
||||
(
|
||||
{
|
||||
config,
|
||||
|
|
@ -65,6 +66,7 @@
|
|||
environment.shellAliases = {
|
||||
"oc" =
|
||||
"all_proxy='' http_proxy='' https_proxy='' /home/josh/other/opencode/node_modules/opencode-linux-x64/bin/opencode";
|
||||
"occ" = "oc -c";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
@ -96,7 +98,7 @@
|
|||
reporting.enable = true;
|
||||
disableRemoteBuildsOnLio = true;
|
||||
};
|
||||
desktopEnvironment.hyprland = {
|
||||
desktopEnvironment.sway = {
|
||||
enable = true;
|
||||
waybar.enable = true;
|
||||
swaync.enable = true;
|
||||
|
|
|
|||
|
|
@ -119,7 +119,6 @@ in
|
|||
config = {
|
||||
environment.systemPackages = [ moveScript ];
|
||||
|
||||
# Pass the options to home-manager for hyprland (as you already do)
|
||||
ringofstorms_common.desktopEnvironment.hyprland.extraOptions = hyprlandExtraOptions;
|
||||
|
||||
# User-level systemd service that follows your Hyprland session and watches for monitor changes
|
||||
|
|
|
|||
77
hosts/lio/sway_customizations.nix
Normal file
77
hosts/lio/sway_customizations.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{ ... }:
|
||||
let
|
||||
swayExtraOptions = {
|
||||
startup = [
|
||||
{
|
||||
command = "exec sh -c 'sleep 0.01; swaymsg workspace number 7; sleep 0.02; swaymsg workspace number 1'";
|
||||
}
|
||||
];
|
||||
|
||||
# Example: map workspaces 1–6 to DP-1 and 7–10 to HDMI-A-1
|
||||
workspaceOutputAssign = [
|
||||
{
|
||||
workspace = "1";
|
||||
output = "DP-1";
|
||||
}
|
||||
{
|
||||
workspace = "2";
|
||||
output = "DP-1";
|
||||
}
|
||||
{
|
||||
workspace = "3";
|
||||
output = "DP-1";
|
||||
}
|
||||
{
|
||||
workspace = "4";
|
||||
output = "DP-1";
|
||||
}
|
||||
{
|
||||
workspace = "5";
|
||||
output = "DP-1";
|
||||
}
|
||||
{
|
||||
workspace = "6";
|
||||
output = "DP-1";
|
||||
}
|
||||
{
|
||||
workspace = "7";
|
||||
output = "DP-2";
|
||||
}
|
||||
{
|
||||
workspace = "8";
|
||||
output = "DP-2";
|
||||
}
|
||||
{
|
||||
workspace = "9";
|
||||
output = "DP-2";
|
||||
}
|
||||
{
|
||||
workspace = "10";
|
||||
output = "DP-2";
|
||||
}
|
||||
];
|
||||
|
||||
# Optional output settings
|
||||
output = {
|
||||
"DP-1" = {
|
||||
scale = "1";
|
||||
pos = "0 0";
|
||||
};
|
||||
"DP-2" = {
|
||||
scale = "1";
|
||||
transform = "270";
|
||||
pos = "-1440 -640";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
options = { };
|
||||
|
||||
config = {
|
||||
environment.systemPackages = [ ];
|
||||
|
||||
ringofstorms_common.desktopEnvironment.sway.extraOptions = swayExtraOptions;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue