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" "clock"
], ],
"modules-right": [ "modules-right": [
"idle_inhibitor",
"mpris", "mpris",
"idle_inhibitor",
"power-profiles-daemon", "power-profiles-daemon",
//"cpu", //"cpu",
//"memory", //"memory",
@ -23,6 +23,7 @@
//"backlight", //"backlight",
"tray", "tray",
"keyboard-state", "keyboard-state",
"privacy",
"bluetooth", "bluetooth",
"network", "network",
"pulseaudio", "pulseaudio",
@ -66,15 +67,16 @@
"tooltip-format": "{app}: {title}" "tooltip-format": "{app}: {title}"
}, },
"mpris": { "mpris": {
"format": "{player_icon} {dynamic}", "format": "{player_icon}",
"format-paused": "{status_icon} <i>{dynamic}</i>", "format-paused": "{player_icon}",
"dynamic-order": ["position","length"], "dynamic-order": ["position","length"],
"tooltip-format": "{title} - {artist} ({player}) | {dynamic}", "tooltip-format": "{title} - {artist} ({player}) | {dynamic}",
"interval": 1, "interval": 1,
"player-icons": { "player-icons": {
"default": "󰐊", "default": "󰐊",
"mpv": "🎵", "mpv": "🎵",
"yesplaymusic": "󰎆" "yesplaymusic": "󰎆",
"Qcm": "󰎆"
}, },
"status-icons": { "status-icons": {
"paused": "󰏤" "paused": "󰏤"
@ -122,8 +124,21 @@
"format": "{:%a %b %d %T}", "format": "{:%a %b %d %T}",
"interval": 1, "interval": 1,
// "timezone": "America/New_York", // "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}" //"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": { "cpu": {
"format": "{usage}% ", "format": "{usage}% ",
@ -177,6 +192,28 @@
"power-saver": "󰌪" "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": { "bluetooth": {
"format": "󰂯", "format": "󰂯",
"format-connected": "󰂱", "format-connected": "󰂱",

View file

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