eww widgets and theme cycle with waybar button
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
"margin-right": 10,
|
||||
"modules-left": ["hyprland/workspaces", "hyprland/window"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "tray"],
|
||||
"modules-right": ["custom/theme", "pulseaudio", "network", "cpu", "memory", "battery", "tray"],
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click": "activate",
|
||||
@@ -41,7 +41,7 @@
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": "{signalStrength}%",
|
||||
"format-ethernet": " {ipaddr}",
|
||||
"format-ethernet": "{ipaddr}",
|
||||
"format-disconnected": " Offline",
|
||||
"tooltip-format": "{essid} — {ipaddr}\n{bandwidthUpBits} up {bandwidthDownBits} down",
|
||||
"interval": 5
|
||||
@@ -50,9 +50,30 @@
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " Muted",
|
||||
"format-icons": { "headphone": "", "default": ["", "", ""] },
|
||||
"on-click": "pavucontrol"
|
||||
"on-click": "~/.config/eww/scripts/toggle-mixer.sh"
|
||||
},
|
||||
"tray": { "spacing": 8, "icon-size": 16 }
|
||||
|
||||
"custom/theme": {
|
||||
"exec": "$HOME/.config/hypr/theme-cycle.sh status",
|
||||
"exec-on-event": true,
|
||||
"return-type": "json",
|
||||
"interval": 2,
|
||||
"on-click": "$HOME/.config/hypr/theme-cycle.sh next",
|
||||
"on-click-right": "$HOME/.config/hypr/theme-cycle.sh auto",
|
||||
"on-scroll-up": "$HOME/.config/hypr/theme-cycle.sh day",
|
||||
"on-scroll-down": "$HOME/.config/hypr/wallthemepaper-cycle.sh night"
|
||||
},
|
||||
|
||||
|
||||
"tray": { "spacing": 8, "icon-size": 16 },
|
||||
|
||||
"custom/2d-workspaces": {
|
||||
"exec": "~/.config/hypr/2d-workspaces.sh",
|
||||
"return-type": "json",
|
||||
"interval": "once",
|
||||
"restart-interval": 1,
|
||||
"signal": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"layer": "top",
|
||||
@@ -65,7 +86,7 @@
|
||||
"margin-right": 10,
|
||||
"modules-left": ["hyprland/workspaces", "hyprland/window"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "tray"],
|
||||
"modules-right": ["custom/theme", "pulseaudio", "network", "cpu", "memory", "battery", "tray"],
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click": "activate",
|
||||
@@ -107,6 +128,30 @@
|
||||
"format-icons": { "headphone": "", "default": ["", "", ""] },
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"tray": { "spacing": 8, "icon-size": 16 }
|
||||
|
||||
|
||||
"custom/theme": {
|
||||
"exec": "$HOME/.config/hypr/theme-cycle.sh status",
|
||||
"exec-on-event": true,
|
||||
"return-type": "json",
|
||||
"interval": 2,
|
||||
"on-click": "$HOME/.config/hypr/theme-cycle.sh next",
|
||||
"on-click-right": "$HOME/.config/hypr/theme-cycle.sh auto",
|
||||
"on-scroll-up": "$HOME/.config/hypr/theme-cycle.sh day",
|
||||
"on-scroll-down": "$HOME/.config/hypr/wallthemepaper-cycle.sh night"
|
||||
},
|
||||
|
||||
|
||||
"tray": { "spacing": 8, "icon-size": 16 },
|
||||
|
||||
"custom/2d-workspaces": {
|
||||
"exec": "~/.config/hypr/2d-workspaces.sh",
|
||||
"return-type": "json",
|
||||
"interval": "once",
|
||||
"restart-interval": 1,
|
||||
"signal": 8
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
]
|
||||
|
||||
|
||||
130
waybar/night.css
Normal file
130
waybar/night.css
Normal file
@@ -0,0 +1,130 @@
|
||||
* {
|
||||
font-family: "JetBrainsMono Nerd Font", "Noto Sans", monospace;
|
||||
font-size: 13px;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: rgba(255, 255, 255, 0);
|
||||
color: #f0f4f8;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/* ── Workspaces ─────────────────────────────────────── */
|
||||
#workspaces {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 8px;
|
||||
padding: 2px 2px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 2px 8px;
|
||||
color: #ffffff;
|
||||
background: transparent;
|
||||
border-radius: 6px;
|
||||
font-size: 15px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: rgba(168, 206, 240, 0.18);
|
||||
color: #f0f4f8;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
background: rgb(167, 124, 215);
|
||||
color: #000000;
|
||||
box-shadow: 0 0 6px rgba(62, 15, 65, 0.4);
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #c0392b;
|
||||
background: rgba(192, 57, 43, 0.18);
|
||||
}
|
||||
|
||||
#workspaces button.empty {
|
||||
color: #5b7a99;
|
||||
}
|
||||
|
||||
/* ── Window title ───────────────────────────────────── */
|
||||
#window {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
color: #ffffff;
|
||||
padding: 0 10px;
|
||||
font-style: italic;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* ── Clock ──────────────────────────────────────────── */
|
||||
#clock {
|
||||
color: #ffffff;
|
||||
padding: 1px 14px;
|
||||
font-weight: bold;
|
||||
border-radius: 8px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
#custom-wallpaper-mode{
|
||||
color: #ffffff;
|
||||
padding: 1px 14px;
|
||||
font-weight: bold;
|
||||
border-radius: 8px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
/* ── Right modules shared style ─────────────────────── */
|
||||
#cpu,
|
||||
#memory,
|
||||
#network,
|
||||
#pulseaudio {
|
||||
padding: 2px 10px;
|
||||
border-radius: 8px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* ── CPU ────────────────────────────────────────────── */
|
||||
#cpu { color: #9ed649; } /* bright grass green */
|
||||
#cpu.warning { color: #e5b25b; } /* warm amber */
|
||||
#cpu.critical { color: #e04534; } /* red */
|
||||
|
||||
/* ── Memory ─────────────────────────────────────────── */
|
||||
#memory { color: #7db9ec; } /* sky mid-blue */
|
||||
|
||||
|
||||
/* ── Tray ───────────────────────────────────────────── */
|
||||
#tray {
|
||||
padding: 2px 8px;
|
||||
border-radius: 8px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#tray > .passive { -gtk-icon-effect: dim; }
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: rgba(192, 57, 43, 0.2);
|
||||
}
|
||||
|
||||
/* ── Custom 2D Workspaces ───────────────────────────── */
|
||||
#custom-2d-workspaces {
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
padding: 0 12px;
|
||||
border-radius: 6px;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
|
||||
/* Base row — sky blue */
|
||||
#custom-2d-workspaces.base {
|
||||
color: #a8cef0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Sub-workspace — grass green tint */
|
||||
#custom-2d-workspaces.sub {
|
||||
color: #7dbe1e;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
124
waybar/style.css
124
waybar/style.css
@@ -1,4 +1,20 @@
|
||||
/* ── Global ─────────────────────────────────────────── */
|
||||
/*
|
||||
Theme: Arch Bliss
|
||||
Inspired by the rolling green hills and blue sky of the wallpaper.
|
||||
Palette:
|
||||
Sky deep: #2a6db5 (upper sky blue)
|
||||
Sky mid: #5b9fd6 (horizon blue)
|
||||
Sky light: #a8cef0 (pale sky)
|
||||
Grass dark: #3a6b0e (shadow grass)
|
||||
Grass mid: #5a9416 (mid grass)
|
||||
Grass light: #7dbe1e (bright grass highlight)
|
||||
Hill muted: #4a7a12 (rolling hills mid)
|
||||
White: #f0f4f8 (Arch logo white)
|
||||
Muted: #8bafc8 (distant hill / muted text)
|
||||
Urgent: #c0392b (red for warnings)
|
||||
*/
|
||||
|
||||
* {
|
||||
font-family: "JetBrainsMono Nerd Font", "Noto Sans", monospace;
|
||||
font-size: 13px;
|
||||
@@ -8,22 +24,21 @@
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: rgba(17, 17, 27, 0);
|
||||
color: #cdd6f4;
|
||||
/*border-bottom: 2px solid rgba(137, 180, 250, 0.25);*/
|
||||
background: rgba(255, 255, 255, 0);
|
||||
color: #f0f4f8;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/* ── Workspaces ─────────────────────────────────────── */
|
||||
#workspaces {
|
||||
background: rgba(30, 30, 46, 0.85);
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
border-radius: 8px;
|
||||
padding: 2px 6px;
|
||||
padding: 2px 2px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 2px 8px;
|
||||
color: #6c7086;
|
||||
color: #ffffff;
|
||||
background: transparent;
|
||||
border-radius: 6px;
|
||||
font-size: 15px;
|
||||
@@ -31,88 +46,113 @@ window#waybar {
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: rgba(137, 180, 250, 0.15);
|
||||
color: #ffffff;
|
||||
background: rgba(168, 206, 240, 0.18);
|
||||
color: #f0f4f8;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
background: rgb(167, 124, 215);
|
||||
color: #ffffff;
|
||||
background: rgba(90, 148, 22, 0.85);
|
||||
color: #f0f4f8;
|
||||
box-shadow: 0 0 6px rgba(125, 190, 30, 0.4);
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #f38ba8;
|
||||
background: rgba(243, 139, 168, 0.15);
|
||||
color: #c0392b;
|
||||
background: rgba(192, 57, 43, 0.18);
|
||||
}
|
||||
|
||||
#workspaces button.empty {
|
||||
color: #6c7086;
|
||||
color: #5b7a99;
|
||||
}
|
||||
|
||||
/* ── Window title ───────────────────────────────────── */
|
||||
#window {
|
||||
color: #a6adc8;
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
color: #ffffff;
|
||||
padding: 0 10px;
|
||||
font-style: italic;
|
||||
border-bottom: 2px solid rgba(45, 57, 76, 0.819);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* ── Clock ──────────────────────────────────────────── */
|
||||
#clock {
|
||||
color: #cba6f7;
|
||||
color: #ffffff;
|
||||
padding: 1px 14px;
|
||||
font-weight: bold;
|
||||
border-radius: 8px;
|
||||
background: rgba(30, 30, 46, 0.85);
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
#custom-theme {
|
||||
color: #ffffff;
|
||||
padding: 1px 14px;
|
||||
font-weight: bold;
|
||||
border-radius: 8px;
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
#custom-theme.day {
|
||||
color: #f9e2af;
|
||||
}
|
||||
|
||||
#custom-theme.night {
|
||||
color: #89b4fa;
|
||||
}
|
||||
|
||||
#custom-theme.auto {
|
||||
color: #a6e3a1;
|
||||
}
|
||||
/* ── Right modules shared style ─────────────────────── */
|
||||
#cpu,
|
||||
#memory,
|
||||
#battery,
|
||||
#network,
|
||||
#pulseaudio {
|
||||
padding: 2px 10px;
|
||||
border-radius: 8px;
|
||||
background: rgba(30, 30, 46, 0.85);
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* ── CPU ────────────────────────────────────────────── */
|
||||
#cpu { color: #a6e3a1; }
|
||||
#cpu.warning { color: #fab387; }
|
||||
#cpu.critical { color: #f38ba8; }
|
||||
#cpu { color: #bfff5e; } /* bright grass green */
|
||||
#cpu.warning { color: #ffe943; } /* warm amber */
|
||||
#cpu.critical { color: #ff6250; } /* red */
|
||||
|
||||
/* ── Memory ─────────────────────────────────────────── */
|
||||
#memory { color: #89dceb; }
|
||||
#memory { color: #7dc2ff; } /* sky mid-blue */
|
||||
|
||||
/* ── Battery ────────────────────────────────────────── */
|
||||
#battery { color: #a6e3a1; }
|
||||
#battery.warning { color: #fab387; }
|
||||
#battery.critical { color: #f38ba8; animation: blink 1s linear infinite; }
|
||||
#battery.charging { color: #a6e3a1; }
|
||||
|
||||
@keyframes blink {
|
||||
to { color: transparent; }
|
||||
}
|
||||
|
||||
/* ── Network ────────────────────────────────────────── */
|
||||
#network { color: #89b4fa; }
|
||||
#network.disconnected { color: #6c7086; }
|
||||
|
||||
/* ── Audio ──────────────────────────────────────────── */
|
||||
#pulseaudio { color: #f5c2e7; }
|
||||
#pulseaudio.muted { color: #6c7086; }
|
||||
|
||||
/* ── Tray ───────────────────────────────────────────── */
|
||||
#tray {
|
||||
padding: 2px 8px;
|
||||
border-radius: 8px;
|
||||
background: rgba(30, 30, 46, 0.85);
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#tray > .passive { -gtk-icon-effect: dim; }
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: rgba(243, 139, 168, 0.2);
|
||||
background-color: rgba(192, 57, 43, 0.2);
|
||||
}
|
||||
|
||||
/* ── Custom 2D Workspaces ───────────────────────────── */
|
||||
#custom-2d-workspaces {
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
padding: 0 12px;
|
||||
border-radius: 6px;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
|
||||
/* Base row — sky blue */
|
||||
#custom-2d-workspaces.base {
|
||||
color: #a8cef0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Sub-workspace — grass green tint */
|
||||
#custom-2d-workspaces.sub {
|
||||
color: #7dbe1e;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
141
waybar/style.css.old
Normal file
141
waybar/style.css.old
Normal file
@@ -0,0 +1,141 @@
|
||||
/* ── Global ─────────────────────────────────────────── */
|
||||
* {
|
||||
font-family: "JetBrainsMono Nerd Font", "Noto Sans", monospace;
|
||||
font-size: 13px;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: rgba(17, 17, 27, 0);
|
||||
color: #cdd6f4;
|
||||
/*border-bottom: 2px solid rgba(137, 180, 250, 0.25);*/
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/* ── Workspaces ─────────────────────────────────────── */
|
||||
#workspaces {
|
||||
background: rgba(30, 30, 46, 0.85);
|
||||
border-radius: 8px;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 2px 8px;
|
||||
color: #6c7086;
|
||||
background: transparent;
|
||||
border-radius: 6px;
|
||||
font-size: 15px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: rgba(137, 180, 250, 0.15);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
background: rgb(167, 124, 215);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #f38ba8;
|
||||
background: rgba(243, 139, 168, 0.15);
|
||||
}
|
||||
|
||||
#workspaces button.empty {
|
||||
color: #6c7086;
|
||||
}
|
||||
|
||||
/* ── Window title ───────────────────────────────────── */
|
||||
#window {
|
||||
color: #ffffff;
|
||||
padding: 0 10px;
|
||||
font-style: italic;
|
||||
border: 2px solid rgba(30, 30, 46, 0.85);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* ── Clock ──────────────────────────────────────────── */
|
||||
#clock {
|
||||
color: #cba6f7;
|
||||
padding: 1px 14px;
|
||||
font-weight: bold;
|
||||
border-radius: 8px;
|
||||
background: rgba(30, 30, 46, 0.85);
|
||||
}
|
||||
|
||||
/* ── Right modules shared style ─────────────────────── */
|
||||
#cpu,
|
||||
#memory,
|
||||
#battery,
|
||||
#network,
|
||||
#pulseaudio {
|
||||
padding: 2px 10px;
|
||||
border-radius: 8px;
|
||||
background: rgba(30, 30, 46, 0.85);
|
||||
}
|
||||
|
||||
/* ── CPU ────────────────────────────────────────────── */
|
||||
#cpu { color: #a6e3a1; }
|
||||
#cpu.warning { color: #fab387; }
|
||||
#cpu.critical { color: #f38ba8; }
|
||||
|
||||
/* ── Memory ─────────────────────────────────────────── */
|
||||
#memory { color: #89dceb; }
|
||||
|
||||
/* ── Battery ────────────────────────────────────────── */
|
||||
#battery { color: #a6e3a1; }
|
||||
#battery.warning { color: #fab387; }
|
||||
#battery.critical { color: #f38ba8; animation: blink 1s linear infinite; }
|
||||
#battery.charging { color: #a6e3a1; }
|
||||
|
||||
@keyframes blink {
|
||||
to { color: transparent; }
|
||||
}
|
||||
|
||||
/* ── Network ────────────────────────────────────────── */
|
||||
#network { color: #89b4fa; }
|
||||
#network.disconnected { color: #6c7086; }
|
||||
|
||||
/* ── Audio ──────────────────────────────────────────── */
|
||||
#pulseaudio { color: #f5c2e7; }
|
||||
#pulseaudio.muted { color: #6c7086; }
|
||||
|
||||
/* ── Tray ───────────────────────────────────────────── */
|
||||
#tray {
|
||||
padding: 2px 8px;
|
||||
border-radius: 8px;
|
||||
background: rgba(30, 30, 46, 0.85);
|
||||
}
|
||||
|
||||
#tray > .passive { -gtk-icon-effect: dim; }
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: rgba(243, 139, 168, 0.2);
|
||||
}
|
||||
|
||||
|
||||
/* --- waybar style.css --- */
|
||||
|
||||
#custom-2d-workspaces {
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
padding: 0 12px;
|
||||
border-radius: 6px;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
|
||||
/* Base row — normal blue */
|
||||
#custom-2d-workspaces.base {
|
||||
color: #89b4fa;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Sub-workspace — green tint so you know you're "deeper" */
|
||||
#custom-2d-workspaces.sub {
|
||||
color: #a6e3a1;
|
||||
background: rgba(166, 227, 161, 0.12);
|
||||
}
|
||||
Reference in New Issue
Block a user