changed waybar

This commit is contained in:
samantha42
2026-03-08 06:26:52 +01:00
parent d4706c9cdf
commit 4684c110ed
4 changed files with 176 additions and 205 deletions

View File

@@ -7,13 +7,13 @@ monitor=DP-2,1920x1080@119.98200, 0x0,1
# --- Workspace assignments --- # --- Workspace assignments ---
workspace = 1, monitor:DP-2, default:true workspace = 1, monitor:DP-2, default:true
workspace = 2, monitor:DP-2 workspace = 2, monitor:DP-2
workspace = 3, monitor:DP-2 workspace = 3, monitor:DP-2
workspace = 4, monitor:DP-2 workspace = 4, monitor:DP-2
workspace = 5, monitor:DP-2 workspace = 5, monitor:DP-2
workspace = 6, monitor:HDMI-A-1, default:true workspace = 6, monitor:HDMI-A-1, default:true
workspace = 7, monitor:HDMI-A-1 workspace = 7, monitor:HDMI-A-1
workspace = 8, monitor:HDMI-A-1 workspace = 8, monitor:HDMI-A-1
workspace = 9, monitor:HDMI-A-1 workspace = 9, monitor:HDMI-A-1

View File

@@ -1,104 +0,0 @@
{
"layer": "top",
"position": "top",
"height": 36,
"spacing": 4,
"margin-top": 4,
"margin-left": 10,
"margin-right": 10,
"modules-left": ["hyprland/workspaces", "hyprland/window"],
"modules-center": ["clock"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "tray"],
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"all-outputs": true,
"active-only": false,
"persistent-workspaces": {
"1": [],
"2": [],
"3": [],
"4": [],
"5": [],
"6": [],
"7": [],
"8": [],
"9": [],
"10": []
},
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"10": "10",
"urgent": "",
"active": "",
"default": ""
}
},
"hyprland/window": {
"format": " {}",
"max-length": 50,
"separate-outputs": true
},
"clock": {
"format": " {:%H:%M}",
"format-alt": " {:%A, %B %d %Y}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"cpu": {
"format": " {usage}%",
"tooltip": true,
"interval": 2
},
"memory": {
"format": " {used:0.1f}G",
"interval": 2
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format-wifi": " {signalStrength}%",
"format-ethernet": " {ipaddr}",
"format-disconnected": "󰌙 Offline",
"tooltip-format": "{essid} — {ipaddr}\n{bandwidthUpBits} up {bandwidthDownBits} down",
"interval": 5
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "󰝟 Muted",
"format-icons": {
"headphone": "󰋋",
"default": ["󰕿", "󰖀", "󰕾"]
},
"on-click": "pavucontrol"
},
"tray": {
"spacing": 8,
"icon-size": 16
}
}

112
waybar/config.jsonc Normal file
View File

@@ -0,0 +1,112 @@
[
{
"layer": "top",
"output": "DP-2",
"position": "top",
"height": 36,
"spacing": 4,
"margin-top": 4,
"margin-left": 10,
"margin-right": 10,
"modules-left": ["hyprland/workspaces", "hyprland/window"],
"modules-center": ["clock"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "tray"],
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"all-outputs": false,
"active-only": false,
"persistent-workspaces": {
"DP-2": [1, 2, 3, 4, 5]
},
"format-icons": {
"1": "1", "2": "2", "3": "3", "4": "4", "5": "5",
"urgent": "", "active": "", "default": ""
}
},
"hyprland/window": { "format": " {}", "max-length": 20, "separate-outputs": true },
"clock": {
"format": "{:%H:%M, %A, %B %d %Y}",
"format-alt": "{:%H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"cpu": { "format": "{usage}%", "tooltip": true, "interval": 2 },
"memory": { "format": "{used:0.1f}G", "interval": 2 },
"battery": {
"states": { "warning": 30, "critical": 15 },
"format": "{icon} {capacity}%",
"format-charging": "{capacity}%",
"format-plugged": "{capacity}%",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format-wifi": "{signalStrength}%",
"format-ethernet": " {ipaddr}",
"format-disconnected": "󰌙 Offline",
"tooltip-format": "{essid} — {ipaddr}\n{bandwidthUpBits} up {bandwidthDownBits} down",
"interval": 5
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "󰝟 Muted",
"format-icons": { "headphone": "󰋋", "default": ["󰕿", "󰖀", "󰕾"] },
"on-click": "pavucontrol"
},
"tray": { "spacing": 8, "icon-size": 16 }
},
{
"layer": "top",
"output": "HDMI-A-1",
"position": "top",
"height": 36,
"spacing": 4,
"margin-top": 4,
"margin-left": 10,
"margin-right": 10,
"modules-left": ["hyprland/workspaces", "hyprland/window"],
"modules-center": ["clock"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "tray"],
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"all-outputs": false,
"active-only": false,
"persistent-workspaces": {
"HDMI-A-1": [6, 7, 8, 9, 10]
},
"format-icons": {
"6": "6", "7": "7", "8": "8", "9": "9", "10": "10",
"urgent": "", "active": "", "default": ""
}
},
"hyprland/window": { "format": " {}", "max-length": 50, "separate-outputs": true },
"clock": {
"format": "{:%H:%M, %A, %B %d %Y}",
"format-alt": "{:%H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"cpu": { "format": "{usage}%", "tooltip": true, "interval": 2 },
"memory": { "format": "{used:0.1f}G", "interval": 2 },
"battery": {
"states": { "warning": 30, "critical": 15 },
"format": "{icon} {capacity}%",
"format-charging": "{capacity}%",
"format-plugged": "{capacity}%",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format-wifi": "{signalStrength}%",
"format-ethernet": " {ipaddr}",
"format-disconnected": "󰌙 Offline",
"tooltip-format": "{essid} — {ipaddr}\n{bandwidthUpBits} up {bandwidthDownBits} down",
"interval": 5
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "󰝟 Muted",
"format-icons": { "headphone": "󰋋", "default": ["󰕿", "󰖀", "󰕾"] },
"on-click": "pavucontrol"
},
"tray": { "spacing": 8, "icon-size": 16 }
}
]

View File

@@ -1,71 +1,70 @@
/* ── Global ─────────────────────────────────────────── */ /* ── Global ─────────────────────────────────────────── */
* { * {
font-family: "JetBrainsMono Nerd Font", "Noto Sans", monospace; font-family: "JetBrainsMono Nerd Font", "Noto Sans", monospace;
font-size: 13px; font-size: 13px;
border: none; border: none;
border-radius: 0; border-radius: 0;
min-height: 0; min-height: 0;
} }
window#waybar { window#waybar {
background: rgba(17, 17, 27, 0.90); background: rgba(17, 17, 27, 0);
color: #cdd6f4; color: #cdd6f4;
border-bottom: 2px solid rgba(137, 180, 250, 0.25); /*border-bottom: 2px solid rgba(137, 180, 250, 0.25);*/
border-radius: 10px; border-radius: 10px;
} }
/* ── Workspaces ─────────────────────────────────────── */ /* ── Workspaces ─────────────────────────────────────── */
#workspaces { #workspaces {
background: rgba(30, 30, 46, 0.85); background: rgba(30, 30, 46, 0.85);
border-radius: 8px; border-radius: 8px;
padding: 2px 6px; padding: 2px 6px;
margin: 4px 6px;
} }
#workspaces button { #workspaces button {
padding: 2px 8px; padding: 2px 8px;
margin: 0 2px; color: #6c7086;
color: #6c7086; background: transparent;
background: transparent; border-radius: 6px;
border-radius: 6px; font-size: 15px;
font-size: 15px; transition: all 0.2s ease;
transition: all 0.2s ease;
} }
#workspaces button:hover { #workspaces button:hover {
background: rgba(137, 180, 250, 0.15); background: rgba(137, 180, 250, 0.15);
color: #89b4fa; color: #89b4fa;
} }
#workspaces button.active { #workspaces button.active {
color: #89b4fa; color: #89b4fa;
background: rgba(137, 180, 250, 0.20); background: rgba(137, 180, 250, 0.20);
border-bottom: 2px solid #89b4fa; border-bottom: 2px solid #89b4fa;
} }
#workspaces button.urgent { #workspaces button.urgent {
color: #f38ba8; color: #f38ba8;
background: rgba(243, 139, 168, 0.15); background: rgba(243, 139, 168, 0.15);
} }
#workspaces button.empty { #workspaces button.empty {
color: #313244; color: #313244;
} }
/* ── Window title ───────────────────────────────────── */ /* ── Window title ───────────────────────────────────── */
#window { #window {
color: #a6adc8; color: #a6adc8;
padding: 0 10px; padding: 0 10px;
font-style: italic; font-style: italic;
border-bottom: 2px solid rgba(45, 57, 76, 0.819);
} }
/* ── Clock ──────────────────────────────────────────── */ /* ── Clock ──────────────────────────────────────────── */
#clock { #clock {
color: #cba6f7; color: #cba6f7;
background: rgba(203, 166, 247, 0.10); padding: 1px 14px;
border-radius: 8px; font-weight: bold;
padding: 2px 14px; border-radius: 8px;
font-weight: bold; background: rgba(30, 30, 46, 0.85);
} }
/* ── Right modules shared style ─────────────────────── */ /* ── Right modules shared style ─────────────────────── */
@@ -74,83 +73,47 @@ window#waybar {
#battery, #battery,
#network, #network,
#pulseaudio { #pulseaudio {
padding: 2px 10px; padding: 2px 10px;
margin: 4px 2px; border-radius: 8px;
border-radius: 8px; background: rgba(30, 30, 46, 0.85);
background: rgba(30, 30, 46, 0.85);
} }
/* ── CPU ────────────────────────────────────────────── */ /* ── CPU ────────────────────────────────────────────── */
#cpu { #cpu { color: #a6e3a1; }
color: #a6e3a1; #cpu.warning { color: #fab387; }
} #cpu.critical { color: #f38ba8; }
#cpu.warning {
color: #fab387;
}
#cpu.critical {
color: #f38ba8;
}
/* ── Memory ─────────────────────────────────────────── */ /* ── Memory ─────────────────────────────────────────── */
#memory { #memory { color: #89dceb; }
color: #89dceb;
}
/* ── Battery ────────────────────────────────────────── */ /* ── Battery ────────────────────────────────────────── */
#battery { #battery { color: #a6e3a1; }
color: #a6e3a1; #battery.warning { color: #fab387; }
} #battery.critical { color: #f38ba8; animation: blink 1s linear infinite; }
#battery.charging { color: #a6e3a1; }
#battery.warning {
color: #fab387;
}
#battery.critical {
color: #f38ba8;
animation: blink 1s linear infinite;
}
#battery.charging {
color: #a6e3a1;
}
@keyframes blink { @keyframes blink {
to { color: transparent; } to { color: transparent; }
} }
/* ── Network ────────────────────────────────────────── */ /* ── Network ────────────────────────────────────────── */
#network { #network { color: #89b4fa; }
color: #89b4fa; #network.disconnected { color: #6c7086; }
}
#network.disconnected {
color: #6c7086;
}
/* ── Audio ──────────────────────────────────────────── */ /* ── Audio ──────────────────────────────────────────── */
#pulseaudio { #pulseaudio { color: #f5c2e7; }
color: #f5c2e7; #pulseaudio.muted { color: #6c7086; }
}
#pulseaudio.muted {
color: #6c7086;
}
/* ── Tray ───────────────────────────────────────────── */ /* ── Tray ───────────────────────────────────────────── */
#tray { #tray {
padding: 2px 8px; padding: 2px 8px;
margin: 4px 4px; border-radius: 8px;
border-radius: 8px; background: rgba(30, 30, 46, 0.85);
background: rgba(30, 30, 46, 0.85);
}
#tray > .passive {
-gtk-icon-effect: dim;
} }
#tray > .passive { -gtk-icon-effect: dim; }
#tray > .needs-attention { #tray > .needs-attention {
-gtk-icon-effect: highlight; -gtk-icon-effect: highlight;
background-color: rgba(243, 139, 168, 0.2); background-color: rgba(243, 139, 168, 0.2);
} }