Waybar: Split date & time into 2 widgets + moved dnd toggle to left.

This commit is contained in:
Viyurz 2023-12-22 09:07:01 +01:00
parent 4a89f1f398
commit 129ec55942
No known key found for this signature in database
2 changed files with 19 additions and 20 deletions

View file

@ -5,6 +5,7 @@
"modules-left": [ "modules-left": [
"hyprland/workspaces", "hyprland/workspaces",
"tray", "tray",
"custom/dnd-toggle",
"network", "network",
"bluetooth", "bluetooth",
"pulseaudio#output", "pulseaudio#output",
@ -21,10 +22,8 @@
"custom/cpu-temp", "custom/cpu-temp",
"cpu", "cpu",
"clock#date", "clock#date",
"clock#time", "clock#time"
"custom/dnd-toggle"
], ],
"hyprland/workspaces": { "hyprland/workspaces": {
"disable-scroll": true, "disable-scroll": true,
"all-outputs": false, "all-outputs": false,
@ -93,6 +92,19 @@
"format-source": "󰍬 {volume}%", "format-source": "󰍬 {volume}%",
"format-source-muted": "󰍭 {volume}%" "format-source-muted": "󰍭 {volume}%"
}, },
"custom/dnd-toggle": {
"exec": "$HOME/.scripts/waybar-dnd-toggle.sh --no-toggle",
"interval": "once",
"on-click": "$HOME/.scripts/waybar-dnd-toggle.sh; pkill -SIGRTMIN+2 waybar",
"signal": 2,
"tooltip": false,
"return-type": "json",
"format": "{icon} NF",
"format-icons": {
"dnd-enabled": "󰂛",
"dnd-disabled": "󰂚"
}
},
"mpris": { "mpris": {
"interval": 2, "interval": 2,
"format": " {status_icon} {title}", "format": " {status_icon} {title}",
@ -205,18 +217,5 @@
"interval": 1, "interval": 1,
"format": "󰥔 {:%EX}", "format": "󰥔 {:%EX}",
"tooltip": false "tooltip": false
},
"custom/dnd-toggle": {
"exec": "$HOME/.scripts/waybar-dnd-toggle.sh --no-toggle",
"interval": "once",
"on-click": "$HOME/.scripts/waybar-dnd-toggle.sh; pkill -SIGRTMIN+2 waybar",
"signal": 2,
"tooltip": false,
"return-type": "json",
"format": "{icon} {}",
"format-icons": {
"dnd-enabled": "󰂛",
"dnd-disabled": "󰂚"
}
} }
} }

View file

@ -50,6 +50,7 @@
#network, #network,
#bluetooth, #bluetooth,
#pulseaudio, #pulseaudio,
#custom-dnd-toggle,
#custom-media, #custom-media,
#window, #window,
#backlight, #backlight,
@ -59,8 +60,7 @@
#memory, #memory,
#custom-cpu-temp, #custom-cpu-temp,
#cpu, #cpu,
#clock, #clock {
#custom-dnd-toggle {
padding: 2px 6px; padding: 2px 6px;
} }
@ -75,12 +75,12 @@
*/ */
#pulseaudio, #pulseaudio,
#custom-dnd-toggle.dnd-disabled,
#backlight, #backlight,
#custom-gpu-temp, #custom-gpu-temp,
#custom-gpu-usage, #custom-gpu-usage,
#custom-cpu-temp, #custom-cpu-temp,
#cpu, #cpu {
#custom-dnd-toggle.dnd-disabled {
color: @accent1; color: @accent1;
} }