feat: perfect waybar

This commit is contained in:
2026-04-02 20:57:45 -04:00
parent 373c9fe4aa
commit b783b25d32
3 changed files with 58 additions and 78 deletions

View File

@@ -197,11 +197,19 @@ bind = $mainMod, H, movefocus, l
bind = $mainMod, J, movefocus, d bind = $mainMod, J, movefocus, d
bind = $mainMod, K, movefocus, u bind = $mainMod, K, movefocus, u
bind = $mainMod, L, movefocus, r bind = $mainMod, L, movefocus, r
bind = $mainMod, left, movefocus, l
bind = $mainMod, down, movefocus, d
bind = $mainMod, up, movefocus, u
bind = $mainMod, right, movefocus, r
bind = $mainMod SHIFT, H, swapwindow, l bind = $mainMod SHIFT, H, swapwindow, l
bind = $mainMod SHIFT, J, swapwindow, d bind = $mainMod SHIFT, J, swapwindow, d
bind = $mainMod SHIFT, K, swapwindow, u bind = $mainMod SHIFT, K, swapwindow, u
bind = $mainMod SHIFT, L, swapwindow, r bind = $mainMod SHIFT, L, swapwindow, r
bind = $mainMod SHIFT, left, swapwindow, l
bind = $mainMod SHIFT, down, swapwindow, d
bind = $mainMod SHIFT, up, swapwindow, u
bind = $mainMod SHIFT, right, swapwindow, r
# Switch workspaces with mainMod + [0-9] # Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1 bind = $mainMod, 1, workspace, 1

View File

@@ -11,30 +11,19 @@
"gtk-layer-shell": true, "gtk-layer-shell": true,
"reload_style_on_change": true, "reload_style_on_change": true,
"modules-left": [ "modules-left": [
"hyprland/workspaces", "hyprland/workspaces"
"hyprland/window"
], ],
"modules-center": [ "modules-center": [
"clock" "clock"
], ],
"modules-right": [ "modules-right": [
"tray",
"network", "network",
"bluetooth", "bluetooth",
"pulseaudio", "pulseaudio",
"cpu",
"memory",
"battery", "battery",
"tray",
"custom/power" "custom/power"
], ],
"memory": {
"interval": 5,
"format": "󰍛 {}%"
},
"cpu": {
"interval": 5,
"format": "󰻠 {usage}%"
},
"battery": { "battery": {
"states": { "states": {
"warning": 30, "warning": 30,
@@ -57,8 +46,8 @@
"tooltip": true "tooltip": true
}, },
"tray": { "tray": {
"icon-size": 16, "icon-size": 18,
"spacing": 6, "spacing": 12,
"rotate": 0 "rotate": 0
}, },
"custom/power": { "custom/power": {
@@ -89,10 +78,7 @@
"7": "󰎶", "7": "󰎶",
"8": "󰎹", "8": "󰎹",
"9": "󰎼", "9": "󰎼",
"10": "󰽽", "10": "󰽽"
"urgent": "",
"default": "",
"empty": ""
} }
}, },
"hyprland/window": { "hyprland/window": {

View File

@@ -15,8 +15,7 @@
* { * {
color: @foreground; color: @foreground;
font-family: 'JetBrainsMono Nerd Font'; font-family: 'JetBrainsMono Nerd Font';
font-size: 15px; font-size: 14px;
font-weight: 300;
} }
window#waybar { window#waybar {
@@ -27,7 +26,7 @@ window#waybar {
} }
window#waybar>box { window#waybar>box {
padding: 6px 3px; padding: 3px 2px;
} }
tooltip { tooltip {
@@ -49,18 +48,29 @@ tooltip {
#network, #network,
#bluetooth, #bluetooth,
#pulseaudio, #pulseaudio,
#cpu,
#memory,
#battery, #battery,
#tray, #tray,
#custom-power { #custom-power {
background: alpha(@background, 0.56); background: transparent;
border: 1px solid alpha(@foreground, 0.14); border: none;
border-radius: 8px; border-left: 1px solid alpha(@foreground, 0.18);
box-shadow: 0 8px 24px alpha(@background, 0.22); border-radius: 0;
margin: 0 3px; box-shadow: none;
margin: 0;
padding: 0 10px; padding: 0 10px;
min-height: 30px; min-height: 20px;
}
#custom-launcher,
#workspaces,
#clock,
#tray {
border-left: none;
}
#bluetooth,
#pulseaudio {
border-left: none;
} }
#workspaces { #workspaces {
@@ -70,16 +80,18 @@ tooltip {
#workspaces button { #workspaces button {
all: initial; all: initial;
font-size: 18px; font-size: 18px;
min-width: 19px; min-width: 24px;
padding: 0 3px; padding: 0 4px;
margin: 4px 2px; margin: 2px 2px;
border-radius: 6px; border-radius: 6px;
color: @foreground-muted;
opacity: 0.9; opacity: 0.9;
} }
#workspaces button label { #workspaces button label {
color: inherit;
font-size: 18px; font-size: 18px;
margin: 0;
padding: 0;
} }
#workspaces button.empty { #workspaces button.empty {
@@ -93,63 +105,39 @@ tooltip {
} }
#workspaces button.active { #workspaces button.active {
color: @background; color: @accent;
background: @accent; background: alpha(@accent, 0.16);
opacity: 1; }
#workspaces button.active label {
color: @accent;
}
#workspaces button.urgent {
color: @foreground;
background: alpha(@danger, 0.26);
}
#workspaces button.urgent label {
color: @foreground;
} }
#window { #window {
color: @foreground-muted; color: @foreground-muted;
padding-right: 14px; padding: 0 14px;
} }
#clock { #clock {
color: @foreground;
padding: 0 15px; padding: 0 15px;
box-shadow: none; box-shadow: none;
border: none; border: none;
} }
#network {
color: @accent-soft;
}
#bluetooth {
color: @type;
}
#pulseaudio {
color: @accent;
}
#cpu,
#memory {
color: @warning;
}
#battery {
color: @accent-soft;
}
#battery.charging,
#battery.plugged {
color: @accent;
}
#battery.warning:not(.charging) {
color: @warning;
}
#battery.critical:not(.charging) {
color: @danger;
}
#tray { #tray {
padding: 0 12px; padding: 0 12px;
} }
#custom-power { #custom-power {
color: @danger;
padding: 0px 16px 0px 12px; padding: 0px 16px 0px 12px;
} }
@@ -158,8 +146,6 @@ tooltip {
#network:hover, #network:hover,
#bluetooth:hover, #bluetooth:hover,
#pulseaudio:hover, #pulseaudio:hover,
#cpu:hover,
#memory:hover,
#battery:hover, #battery:hover,
#tray:hover, #tray:hover,
#custom-power:hover, #custom-power:hover,
@@ -170,7 +156,7 @@ tooltip {
#custom-launcher:hover, #custom-launcher:hover,
#workspaces button.active:hover { #workspaces button.active:hover {
background: @accent; background: alpha(@accent, 0.28);
} }
.hidden { .hidden {
@@ -196,7 +182,7 @@ menu#menu menuitem:hover {
menu#menu menuitem.section-header { menu#menu menuitem.section-header {
color: @foreground-muted; color: @foreground-muted;
font-size: 12px; font-size: 14px;
margin-top: 4px; margin-top: 4px;
padding: 4px 12px; padding: 4px 12px;
} }