diff options
author | sils <sils@sils.li> | 2023-08-13 12:56:23 +0200 |
---|---|---|
committer | sils <sils@sils.li> | 2023-08-13 12:56:23 +0200 |
commit | e3c810c613d1ad2ef0f4099ff4d6a4dbd99dc05c (patch) | |
tree | c179cf8aebefd0c77c8e04cf22f9e8eecc29d2d7 | |
parent | Fix(u/sils/hyprland): Change look (diff) | |
download | nix-config-e3c810c613d1ad2ef0f4099ff4d6a4dbd99dc05c.tar.gz nix-config-e3c810c613d1ad2ef0f4099ff4d6a4dbd99dc05c.zip |
Feat(u/sils): Use waybar
Diffstat (limited to '')
-rw-r--r-- | users/sils/default.nix | 3 | ||||
-rw-r--r-- | users/sils/waybar/default.nix | 37 |
2 files changed, 39 insertions, 1 deletions
diff --git a/users/sils/default.nix b/users/sils/default.nix index 6a3a94f..467c86b 100644 --- a/users/sils/default.nix +++ b/users/sils/default.nix @@ -1,7 +1,7 @@ {nixneovim, ...}: { imports = [ ./direnv - ./eww + #./eww ./git ./gpg #./grades @@ -15,6 +15,7 @@ ./swaylock ./xsession #./yambar #TODO Update Shell Library + ./waybar ./zsh nixneovim.nixosModules.default ]; diff --git a/users/sils/waybar/default.nix b/users/sils/waybar/default.nix new file mode 100644 index 0000000..1639094 --- /dev/null +++ b/users/sils/waybar/default.nix @@ -0,0 +1,37 @@ +{pkgs, ...}: { + programs.waybar = { + enable = true; + package = pkgs.waybar-hyprland; + settings = [ + { + mainBar = { + layer = "top"; + position = "top"; + output = [ + "eDP-1" + "DP-2" + ]; + }; + modules-left = [ + "wlr/workspaces" + "hyprland/mode" + "wlr/taskbar" + ]; + modules-center = [ + "hyprland/window" + ]; + #modules-right = []; + "wlr/workspaces" = { + "format" = "{icon}"; + "on-scroll-up" = "hyprctl dispatch workspace e+1"; + "on-scroll-down" = "hyprctl dispatch workspace e-1"; + "on-click" = "activate"; + }; + } + ]; + systemd = { + enable = true; + target = "hyprland-session.target"; + }; + }; +} |