forked from foxora/nix
added submap to taskbar for hyprland :3
This commit is contained in:
parent
7ff6be7692
commit
adcfc52c60
3 changed files with 18 additions and 5 deletions
|
|
@ -37,6 +37,7 @@ tooltip label {
|
||||||
#network,
|
#network,
|
||||||
#workspaces,
|
#workspaces,
|
||||||
#taskbar,
|
#taskbar,
|
||||||
|
#submap,
|
||||||
#cpu,
|
#cpu,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#privacy,
|
#privacy,
|
||||||
|
|
@ -74,6 +75,7 @@ right-side modules
|
||||||
#cpu,
|
#cpu,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#tray,
|
#tray,
|
||||||
|
#submap,
|
||||||
#privacy {
|
#privacy {
|
||||||
margin: 4px 0px 4px 4px;
|
margin: 4px 0px 4px 4px;
|
||||||
}
|
}
|
||||||
|
|
@ -96,6 +98,10 @@ right-side modules
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#submap.name {
|
||||||
|
color: @colorfg;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
connects the workspace and taskbar together :3
|
connects the workspace and taskbar together :3
|
||||||
*/
|
*/
|
||||||
|
|
@ -114,7 +120,7 @@ right-side modules
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#cpu {
|
#cpu {
|
||||||
margin: 4px 0 4px 0;
|
margin: 4px 0 4px 4px;
|
||||||
border-radius: 32px 0px 0px 32px;
|
border-radius: 32px 0px 0px 32px;
|
||||||
}
|
}
|
||||||
#memory {
|
#memory {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
height = 20;
|
height = 20;
|
||||||
modules-left = ["hyprland/workspaces" "wlr/taskbar" "custom/media"];
|
modules-left = ["hyprland/workspaces" "wlr/taskbar" "custom/media"];
|
||||||
modules-center = ["clock"];
|
modules-center = ["clock"];
|
||||||
modules-right = ["cpu" "memory" "network" "pulseaudio" "privacy" "tray"];
|
modules-right = ["hyprland/submap" "cpu" "memory" "network" "pulseaudio" "privacy" "tray"];
|
||||||
|
|
||||||
# left
|
# left
|
||||||
"hyprland/workspaces" = {
|
"hyprland/workspaces" = {
|
||||||
|
|
@ -39,6 +39,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# right
|
# right
|
||||||
|
"hyprland/submap" = {
|
||||||
|
format = "{}";
|
||||||
|
# always-on = true;
|
||||||
|
# default-submap = "normal";
|
||||||
|
max-length = 12;
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
"cpu" = {
|
"cpu" = {
|
||||||
format = " {usage}%";
|
format = " {usage}%";
|
||||||
interval = 1;
|
interval = 1;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# a submap for emulating keys/buttons/functions on the keyboard or mouse
|
# a submap for emulating keys/buttons/functions on the keyboard or mouse
|
||||||
|
|
||||||
bind = $mod+shift+alt, a, submap, virtual
|
bind = $mod+shift, c, submap, cursor
|
||||||
submap = virtual
|
submap = cursor
|
||||||
|
|
||||||
# exit submap
|
# exit submap
|
||||||
bind = , escape, submap, reset
|
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
|
binde = alt, y, exec, wlrctl pointer scroll 0 15 # scroll right
|
||||||
|
|
||||||
# catches all other keys and keeps us in the submap
|
# catches all other keys and keeps us in the submap
|
||||||
bind = , catchall, submap, virtual
|
bind = , catchall, submap, cursor
|
||||||
|
|
||||||
submap = reset
|
submap = reset
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue