💥 fix(waybar): empty window and pulseaudio modules
This commit is contained in:
+31
-15
@@ -18,7 +18,7 @@
|
|||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"bluetooth",
|
"bluetooth",
|
||||||
"network",
|
"network",
|
||||||
"custom/notifications"
|
"custom/notifications"
|
||||||
],
|
],
|
||||||
|
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
@@ -34,11 +34,11 @@
|
|||||||
"1": [],
|
"1": [],
|
||||||
"2": []
|
"2": []
|
||||||
},
|
},
|
||||||
|
|
||||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
||||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||||
"escape": true
|
"escape": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"bluetooth": {
|
"bluetooth": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"format-on": "",
|
"format-on": "",
|
||||||
@@ -46,8 +46,10 @@
|
|||||||
"tooltip-format": " {controller_alias}\n{controller_address}",
|
"tooltip-format": " {controller_alias}\n{controller_address}",
|
||||||
"tooltip-format-connected": " Controller(s):\n {controller_alias}\t{controller_address}\n\n Devices ( {num_connections} ) :\n {device_enumerate}",
|
"tooltip-format-connected": " Controller(s):\n {controller_alias}\t{controller_address}\n\n Devices ( {num_connections} ) :\n {device_enumerate}",
|
||||||
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}\n",
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}\n",
|
||||||
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t {device_battery_percentage}%\n"
|
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t {device_battery_percentage}%\n",
|
||||||
|
"on-click": "blueberry" // Change to preferred bluetooth manager
|
||||||
},
|
},
|
||||||
|
|
||||||
"keyboard-state": {
|
"keyboard-state": {
|
||||||
"numlock": true,
|
"numlock": true,
|
||||||
"capslock": true,
|
"capslock": true,
|
||||||
@@ -57,6 +59,7 @@
|
|||||||
"unlocked": " "
|
"unlocked": " "
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"hyprland/window": {
|
"hyprland/window": {
|
||||||
"format": "{class} - {title}",
|
"format": "{class} - {title}",
|
||||||
"show-empty": false,
|
"show-empty": false,
|
||||||
@@ -66,22 +69,24 @@
|
|||||||
" - ": "",
|
" - ": "",
|
||||||
"zen-alpha(.*)": "Zen Browser",
|
"zen-alpha(.*)": "Zen Browser",
|
||||||
"firefox(.*)": "Firefox",
|
"firefox(.*)": "Firefox",
|
||||||
"kitty - (.*)": "Kitty - $1",
|
"kitty - (.*)": "Kitty $1",
|
||||||
|
"Kitty ~": "Kitty",
|
||||||
"spotify(.*)": "Spotify",
|
"spotify(.*)": "Spotify",
|
||||||
"spotube": "Spotube",
|
"spotube": "Spotube",
|
||||||
"discord - Discord (.*)": "Discord $1",
|
"discord - Discord (.*)": "Discord $1",
|
||||||
"vesktop - Discord (.*)": "Vesktop $1",
|
"vesktop -(.*)Discord (.*)": "Vesktop $2",
|
||||||
"org.gnome.(.*) - (.*)": "$1 - $2"
|
"org.gnome.(.*) - (.*)": "$1 - $2"
|
||||||
|
|
||||||
},
|
},
|
||||||
"escape": true
|
"escape": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/logo": {
|
"custom/logo": {
|
||||||
"format": "", // Change to desired logo
|
"format": "", // Change to desired logo
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"escape": true,
|
"escape": true,
|
||||||
"on-click": "anyrun" // Change to desired action
|
"on-click": "anyrun" // Change to desired action
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/notifications": {
|
"custom/notifications": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
@@ -102,11 +107,13 @@
|
|||||||
"on-click-right": "swaync-client -d -sw",
|
"on-click-right": "swaync-client -d -sw",
|
||||||
"escape": true
|
"escape": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/control-center": {
|
"custom/control-center": {
|
||||||
"format": "loading control center...",
|
"format": "loading control center...",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"exec": "bash $HOME/.config/waybar/modules/control-center.sh"
|
"exec": "bash $HOME/.config/waybar/modules/control-center.sh"
|
||||||
},
|
},
|
||||||
|
|
||||||
"idle_inhibitor": {
|
"idle_inhibitor": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
@@ -114,15 +121,18 @@
|
|||||||
"deactivated": ""
|
"deactivated": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"tray": {
|
"tray": {
|
||||||
"icon-size": 16,
|
"icon-size": 16,
|
||||||
"spacing": 12
|
"spacing": 12
|
||||||
},
|
},
|
||||||
|
|
||||||
"clock": {
|
"clock": {
|
||||||
"format": "{:L%A %d, %H:%M}",
|
"format": "{:L%A %d, %H:%M}",
|
||||||
"format-alt": "{:%Y-%m-%d}",
|
"format-alt": "{:%Y-%m-%d}",
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt>{calendar}</tt>"
|
"tooltip-format": "<tt>{calendar}</tt>"
|
||||||
},
|
},
|
||||||
|
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"format": " {usage}%",
|
"format": " {usage}%",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
@@ -182,30 +192,36 @@
|
|||||||
"format-icons": [ "", "", "", "", "" ]
|
"format-icons": [ "", "", "", "", "" ]
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "{volume}% {icon} {format_source}",
|
"format": "{volume}% {icon}",
|
||||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
"format-bluetooth": "{volume}% {icon}",
|
||||||
"format-bluetooth-muted": " {icon}",
|
"format-muted": "",
|
||||||
"format-muted": " {format_source}",
|
|
||||||
"format-source": "{icon} {volume}%",
|
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"headphone": "",
|
"headphone": "",
|
||||||
"hands-free": "",
|
"hands-free": "",
|
||||||
"headset": "",
|
"headset": "",
|
||||||
"default": ["", "", ""]
|
"phone": "",
|
||||||
|
"phone-muted": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": ["", ""]
|
||||||
},
|
},
|
||||||
"exec-if": "which pavucontrol",
|
"scroll-step": 1,
|
||||||
|
"on-scroll-up": "pamixer -i 5",
|
||||||
|
"on-scroll-down": "pamixer -d 5",
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
"custom/media": {
|
"custom/media": {
|
||||||
"format": "{icon} {}",
|
"format": "{icon} {0}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"max-length": 50,
|
"max-length": 50,
|
||||||
"escape": true,
|
"escape": true,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
|
"mpv": "",
|
||||||
"firefox": "",
|
"firefox": "",
|
||||||
"discord": "",
|
"discord": "",
|
||||||
"spotify": "",
|
"spotify": "",
|
||||||
"spotube": "",
|
"spotube": "",
|
||||||
|
"Clapper": "",
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null",
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null",
|
||||||
|
|||||||
@@ -130,9 +130,9 @@ class PlayerManager:
|
|||||||
|
|
||||||
if track_info:
|
if track_info:
|
||||||
if player.props.status == "Playing":
|
if player.props.status == "Playing":
|
||||||
track_info = " " + track_info
|
track_info = " " + track_info
|
||||||
else:
|
else:
|
||||||
track_info = " " + track_info
|
track_info = " " + track_info
|
||||||
# only print output if no other player is playing
|
# only print output if no other player is playing
|
||||||
current_playing = self.get_first_playing_player()
|
current_playing = self.get_first_playing_player()
|
||||||
if current_playing is None or current_playing.props.player_name == player.props.player_name:
|
if current_playing is None or current_playing.props.player_name == player.props.player_name:
|
||||||
|
|||||||
+2
-2
@@ -88,9 +88,9 @@ widget #custom-notifications {
|
|||||||
padding-right: 12px;
|
padding-right: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
widget #window.empty {
|
window#waybar.empty #window {
|
||||||
margin: 0 0 0 0;
|
margin: 0 0 0 0;
|
||||||
padding: 16px 0 0 0;
|
padding: 0 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
widget #battery.charging,
|
widget #battery.charging,
|
||||||
|
|||||||
Reference in New Issue
Block a user