Files
dotfiles/.config/waybar/config.jsonc
T
2024-07-31 18:05:42 +02:00

64 lines
1.8 KiB
JSON

{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["hyprland/workspaces"],
"modules-center": ["custom/music"],
"modules-right": ["pulseaudio", "custom/tomato", "clock", "tray", "custom/lock", "custom/power"],
"hyprland/workspaces": {
"disable-scroll": true,
"sort-by-name": true,
"format": " {icon} ",
"format-icons": {
"default": "",
},
},
"tray": {
"icon-size": 21,
"spacing": 10
},
"custom/music": {
"format": " {}",
"escape": true,
"interval": 5,
"tooltip": false,
"exec": "playerctl metadata --format='{{ title }}'",
"on-click": "playerctl play-pause",
"max-length": 50
},
"clock": {
"timezone": "Europe/Paris",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": " {:%d/%m/%Y}",
"format": " {:%H:%M}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%",
"format-muted": "",
"format-icons": {
"default": ["", "", " "]
},
"on-click": "~/.config/rofi/applets/bin/volume.sh"
},
"custom/tomato": {
"format": "{}",
"escape": true,
"interval": 1,
"tooltip": false,
"exec": "tomato -t",
"max-length": 10
},
"custom/lock": {
"tooltip": false,
"on-click": "hyprlock",
"format": "",
},
"custom/power": {
"tooltip": false,
"on-click": "~/.config/rofi/powermenu/type-2/powermenu.sh",
"format": "⏻"
}
}