2022-05-27 21:13:37 +00:00
|
|
|
// This is not a valid Waybar config file. It is a template designed to work with:
|
|
|
|
// https://git.john.me.tz/jpm/scripts/src/branch/master/sway/displays.pl
|
|
|
|
// You can make changes to the bar, but leave the '__' variables intact.
|
|
|
|
// The script will build a config with these settings for each enabled display.
|
|
|
|
// The '__' variables are defined in the hash in that script file.
|
|
|
|
[{
|
2022-08-23 20:20:08 +00:00
|
|
|
"name": "bar",
|
2022-05-27 21:13:37 +00:00
|
|
|
"output": __OUTPUT__,
|
|
|
|
"ipc": true,
|
|
|
|
"id": "bar-1",
|
|
|
|
"mode": "hide",
|
|
|
|
"hidden_state": "hide",
|
2024-10-02 18:49:20 +00:00
|
|
|
"layer": "overlay", // Waybar at top layer
|
2022-05-27 21:13:37 +00:00
|
|
|
"position": "top", // Waybar position (top|bottom|left|right)
|
2024-10-02 18:55:31 +00:00
|
|
|
"reload_style_on_change": true,
|
2023-04-10 00:34:19 +00:00
|
|
|
//"margin-left": 20,
|
|
|
|
//"margin-right": 20,
|
|
|
|
//"margin-top": 20,
|
2022-05-27 21:13:37 +00:00
|
|
|
// Choose the order of the modules
|
2023-04-10 00:34:19 +00:00
|
|
|
"modules-left": ["sway/workspaces", "sway/window"],
|
2022-05-27 21:13:37 +00:00
|
|
|
"modules-center": [],
|
2024-10-15 22:32:40 +00:00
|
|
|
"modules-right": ["sway/mode", "custom/weather", "custom/keyboard", "backlight", "cpu", "memory", "custom/disk", "temperature", "pulseaudio", "custom/battery", "tray", "custom/wallpaper", "custom/pkg", "custom/idle_mode", "custom/clock", "custom/nc"],
|
2022-05-27 21:13:37 +00:00
|
|
|
// Modules configuration
|
|
|
|
"sway/workspaces": {
|
|
|
|
// "disable-scroll": true,
|
|
|
|
// "all-outputs": true,
|
|
|
|
"format": "{icon}",
|
2023-01-06 18:57:26 +00:00
|
|
|
"numeric-first": true,
|
2022-05-27 21:13:37 +00:00
|
|
|
"format-icons": {
|
2023-01-17 17:52:54 +00:00
|
|
|
"0": "0 \uf073", // HUD
|
|
|
|
"1": "1 \uf27a", // Chat
|
|
|
|
"2": "2 \uf0e0", // Mail
|
|
|
|
"3": "3 \uf268", // Secondary Browser
|
|
|
|
"4": "4 \uf126", // Git
|
|
|
|
"5": "5 \uf095", // TBD
|
|
|
|
"6": "6 \uf120", // Terminals
|
|
|
|
"7": "7 \uf269", // Browser
|
|
|
|
"8": "8 \uf121", // IDE
|
|
|
|
"9": "9 \uf144", // Music
|
2022-05-27 21:13:37 +00:00
|
|
|
"C0": "C0",
|
|
|
|
"C1": "C1",
|
|
|
|
"C2": "C2",
|
|
|
|
"C3": "C3",
|
|
|
|
"C4": "C4",
|
|
|
|
"C5": "C5",
|
|
|
|
"C6": "C6",
|
|
|
|
"C7": "C7",
|
|
|
|
"C8": "C8",
|
|
|
|
"C9": "C9",
|
2024-02-01 16:36:05 +00:00
|
|
|
//"default": "",
|
|
|
|
//"urgent": "!",
|
|
|
|
//"focused": "",
|
|
|
|
"grave": ""
|
2022-05-27 21:13:37 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
//"mpd": {
|
|
|
|
//"server": "10.10.0.66",
|
2023-01-06 18:57:26 +00:00
|
|
|
//"port": 6600,
|
|
|
|
//"interval": 10,
|
|
|
|
//"timeout": 30,
|
|
|
|
//"unknown-tag": "⚠",
|
|
|
|
//"format": "▶️ {title}",
|
|
|
|
//"format-paused": "⏸️ {title}",
|
|
|
|
//"format-stopped": "⏹️ mpd",
|
|
|
|
//"format-disconnected": "⚠ mpd",
|
2022-05-27 21:13:37 +00:00
|
|
|
//"on-click": "${HOME}/scripts/waybar/waybar-mpd.sh"
|
|
|
|
//},
|
|
|
|
"custom/weather": {
|
|
|
|
"interval": 600,
|
2024-10-16 00:47:27 +00:00
|
|
|
"return-type": "json",
|
|
|
|
"on-click": "xdg-open https://john.me.tz/weather/forecast",
|
|
|
|
"exec": "${HOME}/scripts/waybar/waybar-weather.sh"
|
2022-05-27 21:13:37 +00:00
|
|
|
},
|
|
|
|
"cpu": {
|
2023-04-17 19:05:54 +00:00
|
|
|
"format": " {usage}%",
|
2022-05-27 21:13:37 +00:00
|
|
|
"tooltip": true,
|
|
|
|
"on-click": "${HOME}/scripts/waybar/waybar-cpu.sh"
|
|
|
|
},
|
|
|
|
"memory": {
|
2023-04-17 19:05:54 +00:00
|
|
|
"format": " {}%",
|
2022-05-27 21:13:37 +00:00
|
|
|
"on-click": "${HOME}/scripts/waybar/waybar-mem.sh"
|
|
|
|
},
|
|
|
|
"custom/disk": {
|
2023-04-17 19:05:54 +00:00
|
|
|
"format": "\uf0a0 {}",
|
2022-05-27 21:13:37 +00:00
|
|
|
"exec": "df / | tail -n 1 | awk {'print $5'}",
|
|
|
|
"on-click": "${HOME}/scripts/waybar/waybar-disk.sh"
|
|
|
|
},
|
|
|
|
"temperature": {
|
|
|
|
"critical-threshold": 80,
|
2024-10-15 22:32:40 +00:00
|
|
|
"format": " {temperatureC}°C"
|
2022-05-27 21:13:37 +00:00
|
|
|
},
|
2024-02-01 04:20:36 +00:00
|
|
|
"backlight": {
|
|
|
|
"device": "acpi_video1",
|
|
|
|
"format": "{icon} {percent}%",
|
2024-10-02 18:48:51 +00:00
|
|
|
"format-icons": [ "\uf185" ],
|
2024-02-01 04:20:36 +00:00
|
|
|
"on-click": "notify-send $(brightnessctl info)",
|
|
|
|
"on-scroll-up": "${HOME}/scripts/waybar/waybar-backlight.sh up",
|
|
|
|
"on-scroll-down": "${HOME}/scripts/waybar/waybar-backlight.sh down"
|
|
|
|
},
|
2023-04-10 00:34:19 +00:00
|
|
|
//"backlight": {
|
2024-02-01 04:20:36 +00:00
|
|
|
//"device": "acpi_video1",
|
2023-04-17 19:05:54 +00:00
|
|
|
//"format": "{icon} {percent}%",
|
2023-04-10 00:34:19 +00:00
|
|
|
//"format-icons": [ "•", "☼", "o", "", ""],
|
|
|
|
//"on-click": "${HOME}/scripts/thinkpad/blc.pl --notify %",
|
|
|
|
//"on-scroll-up": "${HOME}/scripts/thinkpad/blc.pl --notify ++",
|
|
|
|
//"on-scroll-down": "${HOME}/scripts/thinkpad/blc.pl --notify --"
|
|
|
|
//},
|
2022-05-27 21:13:37 +00:00
|
|
|
"custom/battery": {
|
|
|
|
"format": "{}",
|
2023-01-06 18:57:26 +00:00
|
|
|
"return-type": "json",
|
2023-09-05 18:37:24 +00:00
|
|
|
"exec": "${HOME}/scripts/waybar/waybar-battery.sh bar",
|
|
|
|
"interval": 10,
|
2024-01-31 03:34:52 +00:00
|
|
|
"on-click": "${HOME}/scripts/waybar/waybar-battery.sh notify"
|
2022-05-27 21:13:37 +00:00
|
|
|
},
|
|
|
|
"pulseaudio": {
|
2024-02-01 04:20:36 +00:00
|
|
|
"scroll-step": 1,
|
2023-04-17 19:05:54 +00:00
|
|
|
"format": "{icon} {volume}%",
|
2022-05-27 21:13:37 +00:00
|
|
|
"format-bluetooth": "{icon}{volume}%",
|
|
|
|
"format-muted": "",
|
|
|
|
"format-icons": {
|
|
|
|
"headphones": "",
|
|
|
|
"handsfree": "",
|
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
|
|
|
"default": ["", ""]
|
|
|
|
},
|
2024-02-01 04:20:36 +00:00
|
|
|
"on-scroll-up": "${HOME}/scripts/waybar/waybar-volume.sh up",
|
|
|
|
"on-scroll-down": "${HOME}/scripts/waybar/waybar-volume.sh down",
|
2024-10-15 22:32:40 +00:00
|
|
|
"on-click": "pavucontrol",
|
|
|
|
"on-click-right": "${HOME}/scripts/waybar/waybar-volume.sh"
|
2022-05-27 21:13:37 +00:00
|
|
|
},
|
2022-08-23 20:20:08 +00:00
|
|
|
"tray": {
|
2022-09-12 15:42:45 +00:00
|
|
|
"icon-size": 24,
|
|
|
|
"spacing": 0
|
2022-08-23 20:20:08 +00:00
|
|
|
},
|
2022-09-23 21:40:56 +00:00
|
|
|
"custom/wallpaper": {
|
|
|
|
"interval": 86400,
|
2023-04-10 00:34:19 +00:00
|
|
|
"exec": "echo '✶\nRotate wallpaper\nactive'",
|
2022-09-23 21:40:56 +00:00
|
|
|
"on-click": "${HOME}/scripts/sway/rotate-wallpaper.sh"
|
|
|
|
},
|
2024-10-15 22:32:40 +00:00
|
|
|
//"custom/todo": {
|
|
|
|
//"interval": 86400,
|
|
|
|
//"exec": "echo '☑\nTo-do list\n'",
|
|
|
|
//"on-click": "${HOME}/scripts/waybar/waybar-todo.sh",
|
|
|
|
//},
|
|
|
|
"custom/keyboard": {
|
2022-09-23 21:39:30 +00:00
|
|
|
"interval": 1,
|
2024-10-15 22:32:40 +00:00
|
|
|
"on-click": "${HOME}/scripts/waybar/waybar-keyboard.sh layout",
|
|
|
|
"on-click-right": "${HOME}/scripts/waybar/waybar-keyboard.sh osk",
|
|
|
|
"exec": "${HOME}/scripts/waybar/waybar-keyboard.sh bar",
|
|
|
|
"return-type": "json",
|
2022-08-23 20:20:08 +00:00
|
|
|
},
|
|
|
|
"custom/pkg": {
|
2024-10-15 22:32:40 +00:00
|
|
|
"interval": 360,
|
2023-01-06 18:57:26 +00:00
|
|
|
"tooltip-format": "<span font='Anonymous Pro 12'><big>{:%d %B}</big>\n<tt><small>{calendar}</small></tt></span>",
|
2024-10-15 22:32:40 +00:00
|
|
|
"on-click": "alacritty --config-file ~/.dotfiles/alacritty/host.toml --class Alacritty-grave -e ${HOME}/scripts/waybar/waybar-pkg.sh upgrade",
|
2023-01-06 18:57:26 +00:00
|
|
|
"return-type": "json",
|
2022-08-23 20:20:08 +00:00
|
|
|
"exec": "${HOME}/scripts/waybar/waybar-pkg.sh bar"
|
|
|
|
},
|
2024-10-02 18:47:20 +00:00
|
|
|
"custom/idle_mode": {
|
2023-07-16 18:46:10 +00:00
|
|
|
"interval": 1,
|
2023-01-06 18:57:26 +00:00
|
|
|
"return-type": "json",
|
2024-10-02 18:47:20 +00:00
|
|
|
"exec": "${HOME}/scripts/waybar/waybar-idle.sh",
|
|
|
|
"on-click": "${HOME}/scripts/sway/idle.sh mode",
|
|
|
|
"on-click-right": "${HOME}/scripts/sway/idle.sh toggle"
|
2022-11-21 23:55:17 +00:00
|
|
|
},
|
2022-08-26 05:06:16 +00:00
|
|
|
"custom/gammastep": {
|
|
|
|
"interval": 1,
|
2023-01-06 18:57:26 +00:00
|
|
|
"return-type": "json",
|
2022-08-26 05:06:16 +00:00
|
|
|
"exec": "${HOME}/scripts/waybar/waybar-gammastep.sh",
|
2023-01-06 18:57:26 +00:00
|
|
|
"on-click": "${HOME}/scripts/waybar/waybar-gammastep.sh toggle"
|
2022-08-26 05:06:16 +00:00
|
|
|
},
|
2024-10-02 18:48:05 +00:00
|
|
|
"custom/nc": {
|
|
|
|
"tooltip": true,
|
2024-10-15 22:32:40 +00:00
|
|
|
"format": "{icon} Test",
|
2024-10-02 18:48:05 +00:00
|
|
|
"format-icons": {
|
|
|
|
"notification": " <span foreground=red><sup></sup></span>",
|
|
|
|
"none": "<span style='color: #928374'> </span>",
|
|
|
|
"dnd-notification": " <span foreground=red><sup></sup></span>",
|
|
|
|
"dnd-none": " ",
|
|
|
|
"inhibited-notification": " <span foreground=red><sup></sup></span>",
|
|
|
|
"inhibited-none": " ",
|
|
|
|
"dnd-inhibited-notification": " <span foreground=red><sup></sup></span>",
|
|
|
|
"dnd-inhibited-none": " "
|
|
|
|
},
|
|
|
|
"return-type": "json",
|
|
|
|
"exec": "swaync-client -swb",
|
2024-10-15 22:32:40 +00:00
|
|
|
"exec-if": "which swaync-client",
|
|
|
|
"on-click": "swaync-client -t",
|
2024-10-02 18:48:05 +00:00
|
|
|
"on-click-right": "swaync-client -d",
|
|
|
|
"escape": true
|
|
|
|
},
|
2022-08-23 20:20:08 +00:00
|
|
|
"custom/clock": {
|
|
|
|
"interval": 60,
|
2024-10-15 22:32:40 +00:00
|
|
|
"on-click": "flatpak run org.mozilla.Firefox https://papillon.john.me.tz/calendar.php",
|
2023-01-06 18:57:26 +00:00
|
|
|
"return-type": "json",
|
2022-08-23 20:20:08 +00:00
|
|
|
"exec": "echo '{\"class\": \"clock\", \"text\": \"'$(date '+%H:%M')'\", \"tooltip\": \"'$(date '+%A, %B %d, %Y | %Y-%m-%d')'\"}'"
|
|
|
|
},
|
2022-05-27 21:13:37 +00:00
|
|
|
}]
|