mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-16 11:51:13 +01:00
waybar: Add custom new workspace button
This makes it easy to both add a new workspace and launch rofi with one click.
This commit is contained in:
parent
f272fa0c2c
commit
3622c56d88
13
home.nix
13
home.nix
@ -540,7 +540,7 @@
|
|||||||
position = "left";
|
position = "left";
|
||||||
width = 45;
|
width = 45;
|
||||||
spacing = 8;
|
spacing = 8;
|
||||||
modules-left = [ "wlr/workspaces" ];
|
modules-left = [ "wlr/workspaces" "custom/new-workspace" ];
|
||||||
modules-center = [ "hyprland/window" ];
|
modules-center = [ "hyprland/window" ];
|
||||||
modules-right =
|
modules-right =
|
||||||
[ "tray" "wireplumber" "backlight" "battery" "clock" ];
|
[ "tray" "wireplumber" "backlight" "battery" "clock" ];
|
||||||
@ -572,6 +572,10 @@
|
|||||||
"format" = "{icon}";
|
"format" = "{icon}";
|
||||||
"format-icons" = ["" ""];
|
"format-icons" = ["" ""];
|
||||||
};
|
};
|
||||||
|
"custom/new-workspace" = {
|
||||||
|
"format" = "+";
|
||||||
|
"on-click" = "hyprctl dispatch workspace empty && rofi -show drun";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
style = lib.mkForce ''
|
style = lib.mkForce ''
|
||||||
@ -632,6 +636,13 @@
|
|||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-new-workspace {
|
||||||
|
font-family: "Font Awesome 6 Free Solid";
|
||||||
|
padding-top: 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
color: alpha(@base0A, 0.67);
|
||||||
|
}
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
Loading…
Reference in New Issue
Block a user