diff options
author | Jasper Ras <jras@hostnet.nl> | 2024-11-15 09:29:15 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2024-11-15 09:29:55 +0100 |
commit | 963a6fc9d4cd39b63848a7988fd0f229757cd623 (patch) | |
tree | 5d1000efc37f636542432caf5c509ff434504283 | |
parent | fbfda3383111d76dfbf6e1afb96811920f6120a5 (diff) |
Waybar: multiple outputs. Hyprland: mod+x bindings
-rw-r--r-- | home-manager/compositor/hyprland.nix | 6 | ||||
-rw-r--r-- | hosts/tarrel.nix | 2 | ||||
-rw-r--r-- | hosts/work.nix | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/home-manager/compositor/hyprland.nix b/home-manager/compositor/hyprland.nix index 3c9eecb..7581ace 100644 --- a/home-manager/compositor/hyprland.nix +++ b/home-manager/compositor/hyprland.nix @@ -1,4 +1,4 @@ -{ pkgs, config, primary-monitor, ... }: +{ pkgs, config, monitor-names, ... }: let pics = "${config.home.homeDirectory}/Pictures"; mac-color-4k = "${pics}/mac-color-4k.jpg"; @@ -74,6 +74,8 @@ in "$mod, F, fullscreen, 1" "$mod, Return, exec, alacritty" "$mod SHIFT, Q, killactive" + "$mod, X, movecurrentworkspacetomonitor, mon:+1" + "$mod SHIFT, X, movewindow, mon:+1" "$mod, h, movefocus, l" "$mod, j, movefocus, d" "$mod, k, movefocus, u" @@ -100,7 +102,7 @@ in mainBar = { layer = "top"; position = "bottom"; - output = ["${primary-monitor}"]; + output = monitor-names; modules-left = [ "hyprland/workspaces" ]; diff --git a/hosts/tarrel.nix b/hosts/tarrel.nix index 98d815c..f9d6724 100644 --- a/hosts/tarrel.nix +++ b/hosts/tarrel.nix @@ -79,7 +79,7 @@ useGlobalPkgs = true; useUserPackages = true; users.jras = import ../home-manager/entrypoints/personal.nix; - extraSpecialArgs = { inherit inputs; primary-monitor = "DP-2"; }; + extraSpecialArgs = { inherit inputs; monitor-names = ["DP-2" "HDMI-A-1"]; }; }; system.stateVersion = "24.05"; # Did you read the comment? diff --git a/hosts/work.nix b/hosts/work.nix index 3893f35..ede4ffb 100644 --- a/hosts/work.nix +++ b/hosts/work.nix @@ -112,7 +112,7 @@ useGlobalPkgs = true; useUserPackages = true; users.jras = import ../home-manager/entrypoints/work.nix; - extraSpecialArgs = { inherit inputs; primary-monitor = "eDP-1"; }; + extraSpecialArgs = { inherit inputs; monitor-names = ["eDP-1" "HDMI-A-1"]; }; }; system.stateVersion = "24.05"; # Do NOT change before reading configuration.nix |