♻️ refactor(waybar): use swayosd instead of pactl, use rofi without the theme flag and change some spaces for notifications icons

This commit is contained in:
Sergio Laín 2023-12-21 01:53:46 +01:00
parent 089cc7a730
commit a6ccb36457
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 37 additions and 30 deletions

View file

@ -49,7 +49,7 @@
"custom/arch": { "custom/arch": {
"format": "  ", "format": "  ",
"tooltip": false, "tooltip": false,
"on-click": "rofi -show drun -theme ~/.config/rofi/style.rasi", "on-click": "rofi -show drun",
"on-click-right": "wleave" "on-click-right": "wleave"
}, },
"custom/weather": { "custom/weather": {
@ -64,14 +64,14 @@
"tooltip": false, "tooltip": false,
"format": "{} {icon}", "format": "{} {icon}",
"format-icons": { "format-icons": {
"notification": "<span foreground='red'><sup></sup></span>", "notification": " <span foreground='red'><sup></sup></span>",
"none": "", "none": " ",
"dnd-notification": "<span foreground='red'><sup></sup></span>", "dnd-notification": " <span foreground='red'><sup></sup></span>",
"dnd-none": "", "dnd-none": " ",
"inhibited-notification": "<span foreground='red'><sup></sup></span>", "inhibited-notification": " <span foreground='red'><sup></sup></span>",
"inhibited-none": "", "inhibited-none": " ",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>", "dnd-inhibited-notification": " <span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": "" "dnd-inhibited-none": " "
}, },
"return-type": "json", "return-type": "json",
"exec-if": "which swaync-client", "exec-if": "which swaync-client",
@ -174,9 +174,11 @@
"default": [" ", " ", " "] "default": [" ", " ", " "]
}, },
"tooltip-format": "{desc}, {volume}%", "tooltip-format": "{desc}, {volume}%",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", "on-click": "swayosd-client --output-volume mute-toggle",
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle", "on-click-right": "swayosd-client --input-volume mute-toggle",
"on-click-middle": "easyeffects" "on-click-middle": "easyeffects",
"on-scroll-up": "swayosd-client --output-volume +1",
"on-scroll-down": "swayosd-client --output-volume -1"
}, },
"cava": { "cava": {
"autosens": 1, "autosens": 1,
@ -234,21 +236,21 @@
"custom/arch": { "custom/arch": {
"format": "  ", "format": "  ",
"tooltip": false, "tooltip": false,
"on-click": "wleave", "on-click": "rofi -show drun",
"on-click-right": "wleave" "on-click-right": "wleave"
}, },
"custom/notifications": { "custom/notifications": {
"tooltip": false, "tooltip": false,
"format": "{} {icon}", "format": "{} {icon}",
"format-icons": { "format-icons": {
"notification": "<span foreground='red'><sup></sup></span>", "notification": " <span foreground='red'><sup></sup></span>",
"none": "", "none": " ",
"dnd-notification": "<span foreground='red'><sup></sup></span>", "dnd-notification": " <span foreground='red'><sup></sup></span>",
"dnd-none": "", "dnd-none": " ",
"inhibited-notification": "<span foreground='red'><sup></sup></span>", "inhibited-notification": " <span foreground='red'><sup></sup></span>",
"inhibited-none": "", "inhibited-none": " ",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>", "dnd-inhibited-notification": " <span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": "" "dnd-inhibited-none": " "
}, },
"return-type": "json", "return-type": "json",
"exec-if": "which swaync-client", "exec-if": "which swaync-client",
@ -361,21 +363,21 @@
"custom/arch": { "custom/arch": {
"format": "  ", "format": "  ",
"tooltip": false, "tooltip": false,
"on-click": "wleave", "on-click": "rofi -show drun",
"on-click-right": "wleave" "on-click-right": "wleave"
}, },
"custom/notifications": { "custom/notifications": {
"tooltip": false, "tooltip": false,
"format": "{} {icon}", "format": "{} {icon}",
"format-icons": { "format-icons": {
"notification": "<span foreground='red'><sup></sup></span>", "notification": " <span foreground='red'><sup></sup></span>",
"none": "", "none": " ",
"dnd-notification": "<span foreground='red'><sup></sup></span>", "dnd-notification": " <span foreground='red'><sup></sup></span>",
"dnd-none": "", "dnd-none": " ",
"inhibited-notification": "<span foreground='red'><sup></sup></span>", "inhibited-notification": " <span foreground='red'><sup></sup></span>",
"inhibited-none": "", "inhibited-none": " ",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>", "dnd-inhibited-notification": " <span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": "" "dnd-inhibited-none": " "
}, },
"return-type": "json", "return-type": "json",
"exec-if": "which swaync-client", "exec-if": "which swaync-client",

View file

@ -263,6 +263,11 @@ window#waybar.hidden {
color: #1e222a; color: #1e222a;
} }
#pulseaudio.source-muted {
background-color: #f5a97f;
color: #1e222a;
}
#backlight { #backlight {
color: #61afef; color: #61afef;
} }