From adcfc52c60de7a3f1f1d3ad367c07a80d3c2666d Mon Sep 17 00:00:00 2001 From: foxora Date: Sat, 7 Mar 2026 16:00:41 +0000 Subject: [PATCH] added submap to taskbar for hyprland :3 --- homes/modules/de/waybar/style.css | 8 +++++++- homes/modules/de/waybar/waybar.nix | 9 ++++++++- homes/modules/wm/hyprland/hypr/keybinds/virtual.conf | 6 +++--- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/homes/modules/de/waybar/style.css b/homes/modules/de/waybar/style.css index 254e789..54ae077 100644 --- a/homes/modules/de/waybar/style.css +++ b/homes/modules/de/waybar/style.css @@ -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 { diff --git a/homes/modules/de/waybar/waybar.nix b/homes/modules/de/waybar/waybar.nix index 71e1f20..d1da186 100644 --- a/homes/modules/de/waybar/waybar.nix +++ b/homes/modules/de/waybar/waybar.nix @@ -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; diff --git a/homes/modules/wm/hyprland/hypr/keybinds/virtual.conf b/homes/modules/wm/hyprland/hypr/keybinds/virtual.conf index 076c602..d396c7e 100644 --- a/homes/modules/wm/hyprland/hypr/keybinds/virtual.conf +++ b/homes/modules/wm/hyprland/hypr/keybinds/virtual.conf @@ -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