migrate waybar to niri

This commit is contained in:
Satria 2026-07-07 12:51:41 +08:00
commit e1f7fb5c5f

View file

@ -12,15 +12,15 @@
modules-left = [ modules-left = [
"custom/start" "custom/start"
"hyprland/workspaces" "niri/workspaces"
"hyprland/window" "niri/window"
"mpris" "mpris"
]; ];
modules-center = if rice.bar.minimal then [] else [ modules-center = if rice.bar.minimal then [] else [
"custom/dunst" "custom/dunst"
"clock" "clock"
"tray" "tray"
"hyprland/submap" # "hyprland/submap"
]; ];
modules-right = if rice.bar.minimal then [ modules-right = if rice.bar.minimal then [
"tray" "tray"
@ -91,15 +91,10 @@
balanced = ""; balanced = "";
}; };
}; };
"hyprland/workspaces" = { "niri/workspaces" = {
format = "{name}"; format = "{value}";
format-icons = { on-scroll-down = "niri msg action focus-workspace-down";
default = " "; on-scroll-up = "niri msg action focus-workspace-up";
active = " ";
urgent = " ";
};
on-scroll-down = "hyprctl dispatch workspace e+1";
on-scroll-up = "hyprctl dispatch workspace e-1";
}; };
"custom/dunst" = { "custom/dunst" = {
format = "{}"; format = "{}";
@ -119,7 +114,7 @@
on-click-right = "playerctl next"; on-click-right = "playerctl next";
on-click = "playerctl previous"; on-click = "playerctl previous";
}; };
"hyprland/window" = { "niri/window" = {
icon = true; icon = true;
max-length = 35; max-length = 35;
separate-outputs = false; separate-outputs = false;
@ -128,16 +123,14 @@
"~" = "${username}@${hostname}"; "~" = "${username}@${hostname}";
"btop" = "${username}@${hostname}"; "btop" = "${username}@${hostname}";
}; };
on-click-right = "hyprctl dispatch fullscreen 0"; on-click-right = "niri msg action fullscreen-window";
on-click-middle = "hyprctl dispatch killactive"; on-click-middle = "niri msg action close-window";
on-click = "hyprctl dispatch fullscreen 1"; on-click = "niri msg action maximize-column";
on-scroll-up = "hyprctl dispatch cyclenext";
on-scroll-down = "hyprctl dispatch cyclenext prev";
};
"hyprland/submap" = {
format = " {}";
on-click = "hyprctl dispatch submap reset";
}; };
# "hyprland/submap" = {
# format = " {}";
# on-click = "hyprctl dispatch submap reset";
# };
"clock" = { "clock" = {
format = "{:%b %d, %I:%M:%S %p}"; format = "{:%b %d, %I:%M:%S %p}";
interval = 1; interval = 1;
@ -234,6 +227,7 @@
#workspaces button { #workspaces button {
border-radius: 0px; border-radius: 0px;
margin: 0px; margin: 0px;
padding: 4px;
background: none; background: none;
border: none; border: none;
} }