diff options
author | Jasper Ras <jaspert.ras@gmail.com> | 2024-11-14 18:08:59 +0100 |
---|---|---|
committer | Jasper Ras <jaspert.ras@gmail.com> | 2024-11-14 18:08:59 +0100 |
commit | e1bb0f2a741877390eeefc17a578b9de1b69d357 (patch) | |
tree | 624ef040d245e9581a8495ab2810c4723ab896a5 /home-manager/compositor/hyprland.nix | |
parent | fb434dd812332a80adea7056a62d554c35f689d8 (diff) |
waybar: configure monitor via flake and add battery widget
Diffstat (limited to 'home-manager/compositor/hyprland.nix')
-rw-r--r-- | home-manager/compositor/hyprland.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/home-manager/compositor/hyprland.nix b/home-manager/compositor/hyprland.nix index 64957dd..bd6fdfd 100644 --- a/home-manager/compositor/hyprland.nix +++ b/home-manager/compositor/hyprland.nix @@ -1,4 +1,4 @@ -{ pkgs, config, ... }: +{ pkgs, config, primary-monitor, ... }: let pics = "${config.home.homeDirectory}/Pictures"; mac-color-4k = "${pics}/mac-color-4k.jpg"; @@ -95,14 +95,13 @@ in mainBar = { layer = "top"; position = "bottom"; - output = [ - "HDMI-A-1" - ]; + output = ["${primary-monitor}"]; modules-left = [ "hyprland/workspaces" ]; modules-right = [ "clock" + "battery" ]; "hyprland/workspaces" = { |