adjustments for waybar: +privacy items +calendar

This commit is contained in:
grassblock 2024-05-25 11:42:41 +08:00
parent 355755c38d
commit 4c2daa98e2
2 changed files with 49 additions and 9 deletions

View file

@ -14,8 +14,8 @@
"clock"
],
"modules-right": [
"idle_inhibitor",
"mpris",
"idle_inhibitor",
"power-profiles-daemon",
//"cpu",
//"memory",
@ -23,6 +23,7 @@
//"backlight",
"tray",
"keyboard-state",
"privacy",
"bluetooth",
"network",
"pulseaudio",
@ -66,15 +67,16 @@
"tooltip-format": "{app}: {title}"
},
"mpris": {
"format": "{player_icon} {dynamic}",
"format-paused": "{status_icon} <i>{dynamic}</i>",
"format": "{player_icon}",
"format-paused": "{player_icon}",
"dynamic-order": ["position","length"],
"tooltip-format": "{title} - {artist} ({player}) | {dynamic}",
"interval": 1,
"player-icons": {
"default": "󰐊",
"mpv": "🎵",
"yesplaymusic": "󰎆"
"yesplaymusic": "󰎆",
"Qcm": "󰎆"
},
"status-icons": {
"paused": "󰏤"
@ -122,8 +124,21 @@
"format": "{:%a %b %d %T}",
"interval": 1,
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"tooltip-format": "<span size='9pt' font='Sarasa Mono SC'>{calendar}</span>", //fix calendar align
//"format-alt": "{:%Y-%m-%d}"
"calendar": {
"mode": "month",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"format": {
"months": "<span color='#eceff4'><b>{}</b></span>",
"days": "<span color='#eceff4'><b>{}</b></span>",
"weeks": "<span color='#d8dee9'><b>W{}</b></span>",
"weekdays": "<span color='#eceff4'><b>{}</b></span>",
"today": "<span color='#5e81ac'><b><u>{}</u></b></span>"
}
}
},
"cpu": {
"format": "{usage}% ",
@ -177,6 +192,28 @@
"power-saver": "󰌪"
}
},
"privacy": {
"icon-spacing": 5,
"icon-size": 13,
"transition-duration": 250,
"modules": [
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 15
},
{
"type": "audio-out",
"tooltip": true,
"tooltip-icon-size": 15
},
{
"type": "audio-in",
"tooltip": true,
"tooltip-icon-size": 15
}
]
},
"bluetooth": {
"format": "󰂯",
"format-connected": "󰂱",

View file

@ -10,7 +10,7 @@ window#waybar {
color: #eceff4;
transition-property: background-color;
transition-duration: .5s;
border-radius: 30px;
border-radius: 10px;
}
window#waybar.hidden {
@ -138,6 +138,10 @@ button:hover {
animation-direction: alternate;
}
#power-profiles-daemon {
padding: 0 5px;
}
#power-profiles-daemon.performance {
color: #eceff4;
}
@ -172,7 +176,6 @@ label:focus {
}
#bluetooth {
font-size: 16px;
}
@ -305,9 +308,9 @@ label:focus {
}
#privacy-item.audio-in {
background-color: #a3be8c;
color: #a3be8c;
}
#privacy-item.audio-out {
background-color: #88c0d0;
color: #88c0d0;
}