Re-style waybar
Some checks failed
EVAL x86_64-linux.picard
BUILD x86_64-linux.picard
UPLOAD x86_64-linux.picard
DOWNLOAD x86_64-linux.picard
CACHIX x86_64-linux.picard
ATTIC x86_64-linux.picard
/ test (push) Successful in 30m25s

This commit is contained in:
Andrea Ciceri 2025-01-10 20:51:00 +01:00
parent 37de97df46
commit e0d5144389
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
2 changed files with 132 additions and 132 deletions

View file

@ -1,95 +1,78 @@
[
{ {
"backlight": { "layer": "top",
"device": "ddcci2", "position": "left",
"format": "{percent}% {icon}", "width": 36,
"format-icons": [" ", " "] "margin": "12 0 12 0",
"spacing": 2,
"modules-left": ["clock", "custom/sep", "niri/window"],
"modules-center": ["niri/workspaces"],
"modules-right": [
"tray",
"custom/sep",
"temperature",
"custom/sep",
"pulseaudio",
"custom/powermenu"
],
"custom/sep": {
"format": "──"
// "format": ""
}, },
"battery": { "custom/powermenu": {
"format": "{capacity}% {icon}", "on-click": "rofi -show menu -modi menu:rofi-power-menu",
"format-alt": "{time} {icon}", "format": "",
"format-charging": "{capacity}% ", "tooltip": false
"format-icons": [" ", " ", " ", " ", " "], },
"format-plugged": "{capacity}%  ", "niri/workspaces": {
"states": { "format": "{icon}",
"critical": 15, "on-click": "activate",
"warning": 30 "format-icons": {
"active": "",
"urgent": "",
"default": ""
}
},
"niri/window": {
"rotate": 90,
"rewrite": {
"(.*) — Mozilla Firefox": " $1",
"(.*) - Emacs": " $1",
"(.*) - Slack": " $1"
} }
}, },
"clock": { "clock": {
"format-alt": "{:%Y-%m-%d}", "tooltip": true,
"tooltip-format": "{:%Y-%m-%d | %H:%M}" "format": "{:%H\n%M}",
}, "tooltip-format": "{:%Y-%m-%d}"
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"height": 30,
"hyprland/workspaces": {
"all-outputs": true,
"disable-scroll-wraparound": true,
"on-click": "activate"
},
"ipc": true,
"layer": "top",
"memory": {
"format": "{}% "
},
"modules-center": ["hyprland/window", "niri/window"],
"modules-left": ["wlr/mode", "hyprland/workspaces", "niri/workspaces"],
"modules-right": [
"network",
"tray",
"pulseaudio",
"cpu",
"memory",
"temperature",
"backlight",
"battery",
"clock"
],
"network": {
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"format-disconnected": "Disconnected ⚠",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} 󰈀 up: {bandwidthUpBits:>4} down: {bandwidthDownBits:>4}",
"format-linked": "{ifname} (No IP) ",
"format-wifi": "{essid} ({signalStrength}%)  {ipaddr}/{cidr} up: {bandwidthUpBits:>4} down: {bandwidthDownBits:>4}",
"interval": 1
},
"position": "top",
"pulseaudio": {
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-icons": {
"car": "",
"default": [" ", " ", " "],
"handsfree": "",
"headphones": " ",
"headset": "",
"phone": "",
"portable": ""
},
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"on-click": "/nix/store/rya5a9r0ryh9x8yf03m3s420r4ay6ysg-pavucontrol-6.1/bin/pavucontrol"
},
"temperature": {
"critical-threshold": 80,
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""],
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input"
}, },
"tray": { "tray": {
"spacing": 10 "icon-size": 20,
"spacing": 5,
"show-passive-items": "false"
}, },
"wlr/mode": { "temperature": {
"format": "<span style=\"italic\">{}</span>", "rotate": 90,
"tooltip": false "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
"format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""]
}, },
"wlr/window": { "pulseaudio": {
"max_length": 50 "rotate": 90,
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": "MUTE ",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"scroll-step": 3,
"on-click": "pavucontrol",
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
} }
} }
]

View file

@ -1,54 +1,71 @@
* { * {
border: none; border: none;
border-radius: 0; font-family: "Iosevka Comfy", "FontAwesome", "Nerd Font";
min-height: 0; font-size: 1.35rem;
font-family: Fira Code; font-weight: 600;
background: none;
} }
window#waybar { window#waybar {
background: rgba(255, 255, 255, 0.05); color: #a5adcb;
color: white; background-color: #181926;
font-size: 1.2rem;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
.modules-left,
.modules-right,
.modules-center {
padding: 12px 4px;
} }
#workspaces button { tooltip {
padding: 0 10px; color: #a5adcb;
background: transparent; background-color: #181926;
color: white; text-shadow: none;
font-size: 2rem;
} }
#workspaces button.active { tooltip * {
box-shadow: inset 0 -5px red; color: #a5adcb;
text-shadow: none;
} }
#workspaces button.focused, #custom-sep {
color: #494d64;
}
#workspaces button:hover { #workspaces button:hover {
box-shadow: inset 0 -5px white; box-shadow: inherit;
text-shadow: inherit;
}
#workspaces button {
color: #5b6078;
background: none;
padding: 0;
}
#workspaces button:hover {
color: #a6da95;
}
#workspaces button.active {
color: #f5bde6;
}
#temperature {
color: #eed49f;
}
#clock {
font-weight: 600;
color: #8bd5ca;
}
#custom-bluetooth_devices {
color: #8aadf4;
}
#pulseaudio {
color: #a6da95;
}
#pulseaudio.muted {
color: #ed8796;
} }
#workspaces button.urgent { #custom-powermenu {
/* background: @theme_fg_color; */ margin: 12px 0 0 0;
/* color: @theme_selected_bg_color; */ color: #6e738d;
}
#mode {
margin: 0 4px;
padding: 0 4px;
/* background: @theme_fg_color; */
/* color: @unfocused_borders; */
}
#pulseaudio,
#network,
#cpu,
#memory,
#disk,
#temperature,
#battery,
#language,
#clock,
#tray {
margin: 0 4px;
padding: 0 2px;
} }