add notifications and emacs-status widget
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["idle_inhibitor", "mpd", "pulseaudio", "bluetooth", "network", "cpu", "memory", "temperature", "battery", "clock", "tray"],
|
||||
"modules-right": ["idle_inhibitor", "mpd", "pulseaudio", "network", "cpu", "memory", "temperature", "battery", "tray", "clock", "custom/swaync", "custom/emacsstatus"],
|
||||
"sway/workspaces": {
|
||||
"disable-scroll-wraparound": true
|
||||
},
|
||||
@ -52,7 +52,8 @@
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format": "{:%Y-%m-%d %I:%M:%S %p}",
|
||||
"format": "{:%Y-%m-%d %H:%M:%S}",
|
||||
//"format": "{:%Y-%m-%d %I:%M:%S %p}",
|
||||
"interval": 1
|
||||
},
|
||||
"cpu": {
|
||||
@ -103,9 +104,9 @@
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} {artist} | {title} | {elapsedTime:%M:%S}/{totalTime:%M:%S}",
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} {artist} - {title} | {elapsedTime:%M:%S}/{totalTime:%M:%S}",
|
||||
// "max-length": 200,
|
||||
"format-disconnected": "Disconnected",
|
||||
"format-disconnected": "-",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
|
||||
"interval": 2,
|
||||
"consume-icons": {
|
||||
@ -139,6 +140,15 @@
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
"custom/swaync": {
|
||||
"exec": "~/.config/waybar/scripts/notifications.sh",
|
||||
"on-click": "swaync-client -t",
|
||||
"restart-interval": 1
|
||||
},
|
||||
"custom/emacsstatus": {
|
||||
"exec": "~/.config/waybar/scripts/emacs-status.sh",
|
||||
"on-click": "emacsclient -c || emacs",
|
||||
"restart-interval": 3
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user