aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/waybar/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home-manager/waybar/default.nix')
-rw-r--r--modules/home-manager/waybar/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/home-manager/waybar/default.nix b/modules/home-manager/waybar/default.nix
new file mode 100644
index 0000000..fb084d7
--- /dev/null
+++ b/modules/home-manager/waybar/default.nix
@@ -0,0 +1,20 @@
+{ ... }:
+{
+ flake.modules.homeManager.waybar =
+ {
+ config,
+ pkgs,
+ ...
+ } : {
+ home.file.".config/waybar/" = {
+ source = ./config;
+ onChange = "${pkgs.procps}/bin/pkill waybar && ${pkgs.hyprland}/bin/hyprctl dispatch exec waybar || ${pkgs.hyprland}/bin/hyprctl dispatch exec waybar";
+ recursive = true;
+ };
+ home.packages = with pkgs; [
+ waybar
+ pamixer
+ wtype
+ ];
+ };
+}