Update
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["hyprland/workspaces", "hyprland/window"],
|
||||
"modules-center": ["custom/inhibit", "idle_inhibitor", "custom/dunst"],
|
||||
"modules-right": ["hyprland/submap", "custom/wifionice", "custom/spotify", "pulseaudio", "custom/network", "cpu", "memory", "temperature", "backlight", "battery", "clock", "tray"],
|
||||
"modules-right": ["hyprland/submap", "custom/wifionice", "mpd", "pulseaudio", "custom/fsi", "custom/fsm", "custom/network", "cpu", "memory", "temperature", "backlight", "battery", "clock", "tray"],
|
||||
// Modules configuration
|
||||
"hyprland/workspaces": {
|
||||
"format-alt": "{name}",
|
||||
@@ -30,6 +30,32 @@
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
"mpd": {
|
||||
"format": "[ {title} ]",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"max-length": 40,
|
||||
"server" : "localhost",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"interval": 2,
|
||||
"consume-icons": {
|
||||
"on": " " // Icon shows only when "consume" is on
|
||||
},
|
||||
"random-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} [ {artist} ] - [ {title} ] on [ {album} ] [ {elapsedTime:%M:%S}/{totalTime:%M:%S} ]",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"custom/spotify": {
|
||||
"format-alt": "{status_icon} {title}",
|
||||
"format-alt-click": "click-middle",
|
||||
@@ -48,6 +74,22 @@
|
||||
"escape": true,
|
||||
"interval": 3
|
||||
},
|
||||
"custom/fsi": {
|
||||
"format": "FSI",
|
||||
"exec": "~/.config/waybar/scripts/fsmi.sh fsi",
|
||||
"return-type": "json",
|
||||
"tooltip": false,
|
||||
"on-click": "/bin/true", // Enables refresh on click
|
||||
"interval": 600
|
||||
},
|
||||
"custom/fsm": {
|
||||
"format": "FSM",
|
||||
"exec": "~/.config/waybar/scripts/fsmi.sh fsm",
|
||||
"return-type": "json",
|
||||
"tooltip": false,
|
||||
"on-click": "/bin/true", // Enables refresh on click
|
||||
"interval": 600
|
||||
},
|
||||
"custom/inhibit": {
|
||||
"format": "☕",
|
||||
"on-click": "systemd-inhibit --what=handle-lid-switch --who=waybar --why='Inhibiting suspend' --mode=block sleep 120 & notify-send 'Inhibiting suspend' 'Waybar will prevent the system from suspending for 2 minutes'"
|
||||
|
Reference in New Issue
Block a user