waybar: add pulseaudio

This commit is contained in:
thomasabishop 2024-03-30 09:33:48 +00:00
parent 61ca02fb92
commit bff5419919
2 changed files with 26 additions and 16 deletions

View file

@ -22,7 +22,8 @@
"custom/diskBackup", "custom/diskBackup",
"battery", "battery",
"custom/wakatime", "custom/wakatime",
"clock", "pulseaudio",
"clock",
"custom/timewarrior", "custom/timewarrior",
"custom/lock", "custom/lock",
"custom/restart", "custom/restart",
@ -150,12 +151,12 @@
"format-alt": "Sig: {essid} ({signalStrength}%)" "format-alt": "Sig: {essid} ({signalStrength}%)"
}, },
"pulseaudio": { "pulseaudio": {
"format": "{icon} {volume}%", "format": "Vol: {volume}%",
"format-bluetooth": "{icon} {volume}% {format_source}", "format-bluetooth": "Vol: {volume}%",
"format-bluetooth-muted": " {icon} {format_source}", "format-bluetooth-muted": "",
"format-muted": " {format_source}", "format-muted": "Vol: mute",
"format-source": " {volume}%", "format-source": "Vol: {volume}%",
"format-source-muted": "", "format-source-muted": "Vole: mute",
"format-icons": { "format-icons": {
"headphone": "", "headphone": "",
"hands-free": "", "hands-free": "",
@ -198,7 +199,8 @@
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null"
}, },
"custom/os": { "custom/os": {
"format": "" "format": "",
"tooltip": false
}, },
"custom/wakatime": { "custom/wakatime": {
"exec": "source $HOME/.env && python3 $HOME/.config/waybar/resources/custom_modules/wakatime.py", "exec": "source $HOME/.env && python3 $HOME/.config/waybar/resources/custom_modules/wakatime.py",
@ -212,7 +214,8 @@
"on-click": "sleep 0.15 && timew stop && notify-send 'Time Warrior' 'Timer stopped'", "on-click": "sleep 0.15 && timew stop && notify-send 'Time Warrior' 'Timer stopped'",
"on-click-right": "sleep 0.1 && timew continue && notify-send 'Time Warrior' 'Timer resumed'", "on-click-right": "sleep 0.1 && timew continue && notify-send 'Time Warrior' 'Timer resumed'",
"return-type": "json", "return-type": "json",
"interval": 5 "interval": 5,
"tooltip": false
}, },
"custom/logout": { "custom/logout": {
"format": "󰛂", "format": "󰛂",
@ -223,7 +226,7 @@
"tooltip": false, "tooltip": false,
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"notification": "<span color=\"#fabd2f\">󰂝</span>", "notification": "<span color=\"#b8bb26\">󰂝</span>",
"none": "󰂚", "none": "󰂚",
"dnd-notification": "󰂛", "dnd-notification": "󰂛",
"dnd-none": "󰂛", "dnd-none": "󰂛",
@ -242,18 +245,22 @@
"custom/diskBackup": { "custom/diskBackup": {
"format": "Bak: {}", "format": "Bak: {}",
"exec": "df -h /media/backups | awk 'NR==2{print $5}'", "exec": "df -h /media/backups | awk 'NR==2{print $5}'",
"interval": 60 "interval": 60,
"tooltip": false
}, },
"custom/lock": { "custom/lock": {
"format": "󰍁", "format": "󰍁",
"on-click": "hyprlock" "on-click": "hyprlock",
"tooltip": false
}, },
"custom/shutdown": { "custom/shutdown": {
"format": "󱠡", "format": "󱠡",
"tooltip": false,
"on-click": "systemctl poweroff" "on-click": "systemctl poweroff"
}, },
"custom/restart": { "custom/restart": {
"format": "󰑓", "format": "󰑓",
"tooltip": false,
"on-click": "systemctl reboot" "on-click": "systemctl reboot"
} }
} }

View file

@ -16,15 +16,16 @@ button {
} }
tooltip { tooltip {
color: #ebdbb2; color: #282828;
border-width: 0;
border-radius: 0; border-radius: 0;
font-weight: 400; font-weight: 400;
background-color: rgba(40, 40, 40, 0.8); background-color: #bdae93;
box-shadow: none; box-shadow: none;
} }
tooltip label { tooltip label {
color: #ebdbb2; color: #282828;
} }
/* Layout */ /* Layout */
@ -46,6 +47,7 @@ tooltip label {
#memory, #memory,
#temperature, #temperature,
#backlight, #backlight,
#pulseaudio,
#disk, #disk,
#custom-diskBackup, #custom-diskBackup,
#battery { #battery {
@ -144,7 +146,8 @@ tooltip label {
} }
#network, #network,
#bluetooth { #bluetooth,
#pulseaudio {
color: #282828; color: #282828;
background-color: #a89984; background-color: #a89984;
border: 2px solid; /* Base border */ border: 2px solid; /* Base border */