2023-12-14 17:23:01 -07:00
|
|
|
// Global
|
|
|
|
{
|
|
|
|
"layer": "top",
|
|
|
|
"position": "top",
|
2024-09-02 14:45:05 -06:00
|
|
|
"margin-top": 3,
|
2023-12-14 17:23:01 -07:00
|
|
|
"margin-left": 10,
|
|
|
|
"margin-right": 10,
|
2024-09-02 14:45:05 -06:00
|
|
|
"margin-bottom": 3,
|
2023-12-14 17:23:01 -07:00
|
|
|
|
|
|
|
// If height property would be not present, it'd be calculated dynamically
|
2024-09-02 14:45:05 -06:00
|
|
|
"height": 60,
|
2023-12-14 17:23:01 -07:00
|
|
|
|
|
|
|
"modules-left": [
|
|
|
|
"custom/launcher",
|
|
|
|
"sway/workspaces",
|
|
|
|
"sway/mode",
|
|
|
|
],
|
|
|
|
|
|
|
|
"modules-center": [
|
2024-09-02 14:45:05 -06:00
|
|
|
"custom/signal",
|
|
|
|
"custom/steam",
|
|
|
|
"custom/spotify",
|
|
|
|
"custom/firefox",
|
|
|
|
"custom/slack",
|
|
|
|
"custom/files",
|
|
|
|
"custom/pomo",
|
2023-12-14 17:23:01 -07:00
|
|
|
],
|
|
|
|
|
|
|
|
"modules-right": [
|
|
|
|
"network",
|
|
|
|
"idle_inhibitor",
|
|
|
|
"memory",
|
|
|
|
"cpu",
|
|
|
|
"pulseaudio",
|
|
|
|
"custom/keyboard-layout",
|
|
|
|
"battery",
|
|
|
|
//"custom/PBPbattery",
|
2024-09-02 14:45:05 -06:00
|
|
|
// "backlight#icon",
|
|
|
|
// "backlight#value",
|
2023-12-14 17:23:01 -07:00
|
|
|
"clock",
|
|
|
|
"tray",
|
|
|
|
//"custom/weather",
|
|
|
|
"custom/power",
|
|
|
|
],
|
|
|
|
|
|
|
|
// Modules
|
|
|
|
|
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon} ",
|
|
|
|
"format-icons":{
|
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
"format-charging": "{capacity}% ",
|
|
|
|
"format-plugged": "{capacity}% ",
|
|
|
|
// "format-good": "", // An empty format will hide the module
|
|
|
|
// "format-full": "",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
|
|
|
|
"custom/PBPbattery": {
|
|
|
|
"exec": "~/.config/waybar/scripts/PBPbattery.sh",
|
|
|
|
"format": "{}",
|
|
|
|
},
|
|
|
|
|
|
|
|
"clock": {
|
|
|
|
"interval": 10,
|
|
|
|
"format-alt": " {:%e %b %Y}", // Icon: calendar-alt
|
|
|
|
"format": "{:%I:%M %p}",
|
|
|
|
"tooltip-format": "{:%e %B %Y}"
|
|
|
|
},
|
|
|
|
|
|
|
|
"cpu": {
|
|
|
|
"interval": 5,
|
|
|
|
"format": " {usage}% ({load})", // Icon: microchip
|
|
|
|
"states": {
|
|
|
|
"warning": 70,
|
|
|
|
"critical": 90,
|
|
|
|
},
|
2024-07-22 13:30:55 -06:00
|
|
|
"on-click": "foot -e 'htop'",
|
2023-12-14 17:23:01 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
"custom/keyboard-layout": {
|
|
|
|
"exec": "swaymsg -t get_inputs | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4",
|
|
|
|
// Interval set only as a fallback, as the value is updated by signal
|
|
|
|
"interval": 30,
|
|
|
|
"format": " {}", // Icon: keyboard
|
|
|
|
// Signal sent by Sway key binding (~/.config/sway/key-bindings)
|
|
|
|
"signal": 1, // SIGHUP
|
|
|
|
"tooltip": false,
|
|
|
|
"on-click": "~/.config/waybar/scripts/keyboard_layout.sh",
|
|
|
|
},
|
|
|
|
|
|
|
|
"memory": {
|
|
|
|
"interval": 5,
|
|
|
|
"format": " {}%", // Icon: memory
|
2024-07-22 13:30:55 -06:00
|
|
|
"on-click": "foot -e 'htop'",
|
2023-12-14 17:23:01 -07:00
|
|
|
"states": {
|
|
|
|
"warning": 70,
|
|
|
|
"critical": 90
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"network": {
|
|
|
|
"interval": 5,
|
|
|
|
"format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi
|
|
|
|
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet
|
|
|
|
"format-disconnected": "⚠ Disconnected",
|
|
|
|
"tooltip-format": "{ifname}: {ipaddr}",
|
2024-07-22 13:30:55 -06:00
|
|
|
"on-click": "foot -e 'nmtui'",
|
2023-12-14 17:23:01 -07:00
|
|
|
},
|
|
|
|
"network#vpn": {
|
|
|
|
"interface": "tun0",
|
|
|
|
"format": " {essid} ({signalStrength}%)",
|
|
|
|
"format-disconnected": "⚠ Disconnected",
|
|
|
|
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
|
|
|
|
},
|
|
|
|
|
|
|
|
"sway/mode": {
|
|
|
|
"format": "{}",
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
|
|
|
|
"sway/window": {
|
|
|
|
"format": "{}",
|
|
|
|
"max-length": 120
|
|
|
|
},
|
|
|
|
|
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": true,
|
|
|
|
"disable-markup" : false,
|
|
|
|
"all-outputs": true,
|
|
|
|
"format": " {icon} ",
|
|
|
|
//"format":"{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"1": "",
|
|
|
|
"2": "",
|
|
|
|
"3": "",
|
|
|
|
"4": "",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"pulseaudio": {
|
|
|
|
"scroll-step": 1, // %, can be a float
|
|
|
|
"format": "{volume}% {icon}",
|
|
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
2024-07-22 13:30:55 -06:00
|
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
|
|
"format-muted": " {format_source}",
|
2023-12-14 17:23:01 -07:00
|
|
|
"format-source": "{volume}% ",
|
|
|
|
"format-source-muted": "",
|
|
|
|
"format-icons": {
|
2024-07-22 13:30:55 -06:00
|
|
|
"headphone": "",
|
|
|
|
"hands-free": "",
|
|
|
|
"headset": "",
|
2023-12-14 17:23:01 -07:00
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
2024-07-22 13:30:55 -06:00
|
|
|
"default": [""]
|
2023-12-14 17:23:01 -07:00
|
|
|
},
|
|
|
|
"on-click": "pavucontrol",
|
|
|
|
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +2%",
|
|
|
|
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -2%",
|
|
|
|
},
|
|
|
|
|
|
|
|
// to use the weather module replace <your_location> with your city or town
|
|
|
|
// note: do not use spaces: new york would be newyork
|
|
|
|
"custom/weather": {
|
|
|
|
"exec": "~/.config/waybar/scripts/weather.sh <your_location>",
|
|
|
|
"return-type": "json",
|
|
|
|
"interval": 600,
|
|
|
|
},
|
|
|
|
|
2024-09-02 14:45:05 -06:00
|
|
|
// "custom/temp": {
|
|
|
|
// "exec": "notify-send \"temp thing\"",
|
|
|
|
// "interval": "once",
|
|
|
|
// "signal": 8,
|
|
|
|
// },
|
|
|
|
|
2023-12-14 17:23:01 -07:00
|
|
|
"tray": {
|
|
|
|
"icon-size": 18,
|
|
|
|
"spacing":10,
|
|
|
|
},
|
|
|
|
|
|
|
|
"backlight#icon": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": [""],
|
|
|
|
"on-scroll-down": "brightnessctl -c backlight set 1%-",
|
|
|
|
"on-scroll-up": "brightnessctl -c backlight set +1%"
|
|
|
|
},
|
|
|
|
|
|
|
|
"backlight#value" :{
|
|
|
|
"format": "{percent}%",
|
|
|
|
"on-scroll-down": "brightnessctl -c backlight set 1%-",
|
|
|
|
"on-scroll-up": "brightnessctl -c backlight set +1%"
|
|
|
|
},
|
|
|
|
|
2024-09-02 14:45:05 -06:00
|
|
|
"custom/signal": {
|
|
|
|
"format": " ",
|
|
|
|
"on-click": "exec signal",
|
|
|
|
"tooltip": false,
|
|
|
|
},
|
|
|
|
|
|
|
|
"custom/steam": {
|
|
|
|
"format": " ",
|
|
|
|
"on-click": "exec steam",
|
|
|
|
"tooltip": false,
|
2023-12-14 17:23:01 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
"custom/spotify": {
|
2024-07-22 13:30:55 -06:00
|
|
|
"format": " ",
|
2024-01-27 12:40:09 -07:00
|
|
|
"on-click": "foot -e 'ncspot'",
|
2024-09-02 14:45:05 -06:00
|
|
|
"tooltip": false,
|
2023-12-14 17:23:01 -07:00
|
|
|
},
|
|
|
|
|
2024-09-02 14:45:05 -06:00
|
|
|
"custom/firefox": {
|
|
|
|
"format": " ",
|
|
|
|
"on-click": "exec firefox",
|
|
|
|
"tooltip": false,
|
2023-12-14 17:23:01 -07:00
|
|
|
},
|
|
|
|
|
2024-09-02 14:45:05 -06:00
|
|
|
|
|
|
|
"custom/slack": {
|
|
|
|
"format": " ",
|
|
|
|
"on-click": "slack",
|
|
|
|
"tooltip": false,
|
|
|
|
"exec if": "pgrep slack"
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"custom/files": {
|
|
|
|
"format": " ",
|
2023-12-14 17:23:01 -07:00
|
|
|
"on-click": "exec thunar",
|
2024-09-02 14:45:05 -06:00
|
|
|
"tooltip": false,
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"custom/pomo": {
|
|
|
|
"format": " {} ",
|
|
|
|
"exec": "/home/nate/source/pomozoro/zig-out/bin/pomozoro",
|
|
|
|
"return-type": "json",
|
|
|
|
"on-click": "echo 's' > ~/.local/share/pomozoro/pomopipe",
|
|
|
|
"on-click-right": "echo 'p' > ~/.local/share/pomozoro/pomopipe",
|
|
|
|
"on-click-middle": "echo 'r' > ~/.local/share/pomozoro/pomopipe",
|
|
|
|
// "signal": 8,
|
2023-12-14 17:23:01 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
"custom/launcher": {
|
|
|
|
"format":" ",
|
|
|
|
"on-click": "exec wofi -c ~/.config/wofi/config -I",
|
|
|
|
"tooltip": false,
|
|
|
|
},
|
|
|
|
|
|
|
|
"custom/power": {
|
|
|
|
"format":"⏻",
|
|
|
|
"on-click": "exec ~/.config/waybar/scripts/power-menu.sh",
|
|
|
|
"tooltip": false,
|
|
|
|
},
|
|
|
|
}
|