refactor 🔨: Workspace, window, right side modules

This commit is contained in:
Ayush Dumasia 2025-05-10 01:11:39 +05:30
parent bb29250c8c
commit 1c8c4f369d
3 changed files with 64 additions and 13 deletions

View file

@ -7,7 +7,8 @@
"modules-left": ["hyprland/workspaces", "cpu", "memory", "network#speed"],
"modules-center": ["clock"],
"modules-right": [
"custom/cava",
// "custom/cava",
"hyprland/window",
"temperature#gpu",
"custom/transparency",
"custom/wallpaper",
@ -18,7 +19,23 @@
"battery"
],
"hyprland/window": {
"format": "󰣇 {}"
"format": "{initialClass}",
"icon": true,
"icon-size": 19,
"seperate-outputs": true,
"rewrite": {
"": " Arch",
"Mozilla Firefox": "Firefox",
"(.*) Thunar": "Thunar",
"(.*)obs(.*)": "OBS",
"Spotify (.*)": "Spotify",
"discord(.*)": " Discord",
"Code": "VS Code",
"Docker Desktop": "Docker",
"kitty": "Kitty",
"zen-alpha": "Zen"
},
"on-click-middle": "pkill waybar && hyprctl dispatch exec waybar"
},
"custom/cava": {
"format": "{}",
@ -77,15 +94,33 @@
"on-click": "kitty btop",
"tooltip-format": "{used}/{total} GiB"
},
// "hyprland/workspaces": {
// "all-outputs": true,
// "warp-on-scroll": true,
// "enable-bar-scroll": true,
// "disable-scroll-wraparound": false,
// "format": " {icon} ",
// "format-icons": {
// "active": "●",
// "default": "○"
// },
// "persistent-workspaces": {
// "*": 3
// },
// "on-click": "activate",
// "on-scroll-up": "hyprctl dispatch workspace e-1",
// "on-scroll-down": "hyprctl dispatch workspace e+1"
// },
"hyprland/workspaces": {
"all-outputs": true,
"warp-on-scroll": true,
"enable-bar-scroll": true,
"disable-scroll-wraparound": false,
"active-only": false,
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
"format": "{icon}",
"format-icons": {
"active": "●",
"default": "○"
"active": "󰮯",
"default": "󰊠",
"special": "S"
},
"persistent-workspaces": {
"*": 3

View file

@ -6,7 +6,7 @@
@define-color antiflash #F1F2F6;
/* black */
@define-color onyx #313638;
@define-color raisin-black rgba(30, 30, 46,0.9);
@define-color raisin-black rgba(30, 30, 46,0.8);
@define-color gunmetal #333745;
@define-color charcoal #424651;
/* blue */

View file

@ -12,6 +12,20 @@
text-shadow: none;
background-color: transparent;
}
window#waybar {
/* background: rgba(0, 0, 0, 0.45); */
/* color: @text; */
border-radius: 6px;
padding: 2px;
box-shadow: none;
}
#window {
color: @text;
background: @raisin-black;
padding: 6px;
margin: 0px 2px;
}
#custom-cava {
color: #cba6f7;
@ -122,9 +136,10 @@ menu,
font-size: 18px;
background: @raisin-black;
color: #94e2d5;
padding: 0px 14px;
/* margin-right: 2px; */
border-radius: 6px 0 0 6px;
padding: 0px 10px;
margin-right: 2px;
border-radius: 6px;
/* border-radius: 6px 0 0 6px; */
/* border-radius: 0 6px 6px 0; */
}
@ -135,7 +150,8 @@ menu,
margin-right: 1px;
color: #f38ba8;
background: @raisin-black;
border-radius: 0 6px 6px 0;
/* border-radius: 0 6px 6px 0; */
border-radius: 6px;
}
#pulseaudio,