{ "layer": "top", "position": "top", "output": [ "eDP-1", "DP-3", "!DP-5" ], "modules-left": [ "custom/power-user", "sway/language", "clock", "custom/weather#eu", "custom/weather#tr", "custom/pacman", "custom/mail", "custom/scratchpad-indicator", "sway/mode" ], "modules-center": [ "custom/media" ], "modules-right": [ "network", "disk", "temperature", "pulseaudio#volume", "pulseaudio#mic", "battery#bat0", "battery#bat1", "custom/battery", "custom/notification", "tray" ], "custom/power-user": { "tooltip": false, "exec":"$HOME/.config/waybar/scripts/user.sh 2> /dev/null", "on-click": "$HOME/.config/waybar/scripts/powermenu.sh 2> /dev/null", "interval": 60 }, "sway/language": { "format": "{shortDescription} {flag}", "on-click": "swaymsg input type:keyboard xkb_switch_layout next" }, "clock": { "format": " {:%H:%M:%S%a%d/%b/%Y}", "interval": 1, "on-click": "wldash" }, "custom/weather#eu": { "format": "{}", "return-type": "json", "exec": "$HOME/.config/waybar/scripts/weather.sh 'Clausthal-Zellerfeld' 2> /dev/null", "interval": 300, "tooltip": true }, "custom/weather#tr": { "format": "{}", "return-type": "json", "exec": "$HOME/.config/waybar/scripts/weather.sh 'Lüleburgaz' 2> /dev/null", "interval": 300, "tooltip": true }, "custom/pacman": { "interval": 3600, "exec": "$HOME/.config/waybar/scripts/checkupdates.sh 2> /dev/null", "signal": 8, "on-click": "notify-send -i software-update-available-symbolic \"Updates Available\" \"$(yay -Qu | checkupdates) \"" }, "custom/mail": { "exec": "$HOME/.config/waybar/scripts/mail.sh 2> /dev/null", "interval": 3600, "on-click": "thunderbird" }, "custom/scratchpad-indicator": { "format": " {}", "return-type": "json", "exec": "swaymsg -t get_tree | jq --unbuffered --compact-output '(recurse(.nodes[]) | select(.name == \"__i3_scratch\") | .focus) as $scratch_ids | [.. | (.nodes? + .floating_nodes?) // empty | .[] | select(.id |IN($scratch_ids[]))] as $scratch_nodes | if ($scratch_nodes|length) > 0 then { text: \"\\($scratch_nodes | length)\", tooltip: $scratch_nodes | map(\"\\(.app_id // .window_properties.class) (\\(.id)): \\(.name)\") | join(\"\\n\") } else empty end'", "interval": 3, "on-click": "swaymsg 'scratchpad show'", "on-click-right": "swaymsg 'move scratchpad'" }, "sway/mode": { "format": " {}", "max-length": 50 }, "custom/media": { "max-length": 70, "exec": "$HOME/.config/waybar/scripts/mediaplayer.sh 2> /dev/null", "interval": 1, "on-click": "playerctl play-pause" }, "network": { "format-wifi": "", "format-ethernet": "", "format-linked": "", "format-disconnected": "Disconnected ", "internval": 60, "on-click": "iwgtk" }, "disk": { "format": "{used} ", "on-click": "exec thunar" }, "temperature": { "critical-threshold": 65, "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}", "format-icons": [ "", "", "" ] }, "pulseaudio#volume": { "format": "{volume}% {icon}", "format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}", "format-muted": "{volume}% 󰖁", "format-icons": { "headphone": "", "phone": "", "portable": "", "car": "", "default": [ "", "奔", "" ] }, "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", "on-click-right": "pavucontrol" }, "pulseaudio#mic": { "format": "{format_source}", "format-source": "{volume}% ", "format-source-muted": "{volume}% ", "on-click": "pactl set-source-mute @DEFAULT_SOURCE@ toggle" }, "battery#bat0": { "bat": "BAT0", "states": { "good": 95, "warning": 10, "critical": 5 }, "format": "{capacity}% {icon}", "format-charging": "{capacity}% ", "format-plugged": "{capacity}% ", "format-icons": ["", "", "", "", ""], "tooltip-format": "{time}", "interval": 1 }, "battery#bat1": { "bat": "BAT1", "states": { "good": 95, "warning": 10, "critical": 5 }, "format": "{capacity}% {icon}", "format-charging": "{capacity}% ", "format-plugged": "{capacity}% ", "format-icons": ["", "", "", "", ""], "tooltip-format": "{time}", "interval": 1 }, "custom/battery": { "exec": "$HOME/.config/waybar/scripts/battery.sh 2> /dev/null", "interval": 60 }, "custom/notification": { "tooltip": false, "format": "{} {icon}", "format-icons": { "notification": "", "none": "", "dnd-notification": "", "dnd-none": "" }, "return-type": "json", "exec-if": "which swaync-client", "exec": "swaync-client -swb", "on-click": "swaync-client -t -sw", "on-click-right": "swaync-client -d -sw", "escape": true }, "tray": { "icon-size": 13, "spacing": 1, "show-passive-items": true } }