From 9f268f008be092d7aa879388979552d8ad277be4 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 15 Sep 2024 10:13:40 -0400 Subject: [PATCH] waybar: improved river support --- homeManagerModules/services/waybar/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/services/waybar/default.nix b/homeManagerModules/services/waybar/default.nix index 794569c1..16ea67b9 100644 --- a/homeManagerModules/services/waybar/default.nix +++ b/homeManagerModules/services/waybar/default.nix @@ -55,6 +55,11 @@ in { on-click = ''hyprctl dispatch submap reset''; }; + "river/mode" = { + format = "{}"; + on-click = ''riverctl enter-mode normal''; + }; + "sway/workspaces" = { all-outputs = true; format = "{icon} {name}"; @@ -82,7 +87,7 @@ in { }; "custom/app-close" = { - on-click = ''hyprctl dispatch killactive || swaymsg kill''; + on-click = ''hyprctl dispatch killactive || swaymsg kill || riverctl close''; format = "󰅗"; tooltip-format = "Close the focused window."; }; @@ -334,6 +339,7 @@ in { config.programs.rofi.package config.wayland.windowManager.hyprland.package config.wayland.windowManager.sway.package + config.wayland.windowManager.river.package ] ++ (with pkgs; [ blueberry