added submap to taskbar for hyprland :3

This commit is contained in:
foxora 2026-03-07 16:00:41 +00:00
parent 7ff6be7692
commit adcfc52c60
3 changed files with 18 additions and 5 deletions

View file

@ -37,6 +37,7 @@ tooltip label {
#network,
#workspaces,
#taskbar,
#submap,
#cpu,
#pulseaudio,
#privacy,
@ -74,6 +75,7 @@ right-side modules
#cpu,
#pulseaudio,
#tray,
#submap,
#privacy {
margin: 4px 0px 4px 4px;
}
@ -96,6 +98,10 @@ right-side modules
border: none;
}
#submap.name {
color: @colorfg;
}
/*
connects the workspace and taskbar together :3
*/
@ -114,7 +120,7 @@ right-side modules
*/
#cpu {
margin: 4px 0 4px 0;
margin: 4px 0 4px 4px;
border-radius: 32px 0px 0px 32px;
}
#memory {

View file

@ -8,7 +8,7 @@
height = 20;
modules-left = ["hyprland/workspaces" "wlr/taskbar" "custom/media"];
modules-center = ["clock"];
modules-right = ["cpu" "memory" "network" "pulseaudio" "privacy" "tray"];
modules-right = ["hyprland/submap" "cpu" "memory" "network" "pulseaudio" "privacy" "tray"];
# left
"hyprland/workspaces" = {
@ -39,6 +39,13 @@
};
# right
"hyprland/submap" = {
format = "{}";
# always-on = true;
# default-submap = "normal";
max-length = 12;
tooltip = false;
};
"cpu" = {
format = " {usage}%";
interval = 1;

View file

@ -1,7 +1,7 @@
# a submap for emulating keys/buttons/functions on the keyboard or mouse
bind = $mod+shift+alt, a, submap, virtual
submap = virtual
bind = $mod+shift, c, submap, cursor
submap = cursor
# exit submap
bind = , escape, submap, reset
@ -38,6 +38,6 @@ binde = alt, e, exec, wlrctl pointer scroll -15 0 # scroll left
binde = alt, y, exec, wlrctl pointer scroll 0 15 # scroll right
# catches all other keys and keeps us in the submap
bind = , catchall, submap, virtual
bind = , catchall, submap, cursor
submap = reset