Add hyprland/workspaces module for waybar

This commit is contained in:
Evie Litherland-Smith 2023-09-11 23:19:16 +01:00
parent e577ee1361
commit c09b1c7f03
3 changed files with 21 additions and 4 deletions

View file

@ -27,7 +27,7 @@ in {
display-ssh = " 󰢹 SSH "; display-ssh = " 󰢹 SSH ";
display-filebrowser = " 󰝰 Files "; display-filebrowser = " 󰝰 Files ";
display-calc = " 󰪚 Calculator "; display-calc = " 󰪚 Calculator ";
display-combi = " 󰛡 Combi "; display-combi = " 󱗿 Combi ";
}; };
theme = ./theme.rasi; theme = ./theme.rasi;
}; };

View file

@ -10,7 +10,7 @@
settings.main = { settings.main = {
layer = "top"; layer = "top";
position = "top"; position = "top";
"modules-left" = [ "wlr/workspaces" "hyprland/submap" ]; "modules-left" = [ "hyprland/workspaces" ];
"modules-center" = [ "mpris" ]; "modules-center" = [ "mpris" ];
"modules-right" = [ "modules-right" = [
"pulseaudio" "pulseaudio"
@ -21,8 +21,7 @@
"tray" "tray"
"clock" "clock"
]; ];
"wlr/workspaces" = import ./modules/wlr_workspaces.nix; "hyprland/workspaces" = import ./modules/hyprland_workspaces.nix;
"hyprland/submap" = import ./modules/hyprland_submap.nix;
mpris = import ./modules/mpris.nix; mpris = import ./modules/mpris.nix;
cpu = import ./modules/cpu.nix; cpu = import ./modules/cpu.nix;
memory = import ./modules/memory.nix; memory = import ./modules/memory.nix;

View file

@ -0,0 +1,18 @@
{
format = "{icon}";
format-icons = {
"1" = "󰟀"; # [a]ny
"2" = "󰈹"; # [b]rowser
"3" = "󰳼"; # [d]ev
"4" = "󰝰"; # [f]iles
"5" = "󰓇"; # [s]potify (or mu[s]ic)
"6" = "󰭹"; # [c]hat
"7" = "󰍫"; # [v]ideo
"8" = "󰢹"; # [r]emote
"9" = "󰓓"; # [g]aming
default = "󰛡";
special = "󰓎";
urgent = "󰣘";
};
show-special = true;
}