From 0ea7c9210869e3cbfcd3ac2aca8cbb4e18a8f832 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Wed, 11 Feb 2026 05:44:52 +0300 Subject: add wm --- dot_config/waybar/config | 210 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 dot_config/waybar/config (limited to 'dot_config/waybar/config') diff --git a/dot_config/waybar/config b/dot_config/waybar/config new file mode 100644 index 0000000..a1c11d5 --- /dev/null +++ b/dot_config/waybar/config @@ -0,0 +1,210 @@ +[ + { + "position": "top", + "name": "main", + "layer": "top", + + "modules-left": [ + "temperature", + "cpu", + "memory", + "disk#root", + "battery", + "sway/workspaces" + ], + "modules-center": [ + "sway/window" + ], + "modules-right": [ + "tray", + "custom/recorder", + "custom/inbox", + "custom/sunset", + "custom/vpn", + // "custom/notification", + "idle_inhibitor", + "pulseaudio#source", + "pulseaudio#sink", + "sway/language", + "network", + "clock" + ], + + "temperature": { + "format": "🌡{temperatureC}°C" + }, + + "cpu": { + "interval": 2, + "format": "\uf2db {usage:2}%" + }, + + "memory": { + "interval": 30, + "format": "\uf1c0 {percentage:2}%" + }, + + "disk#root": { + "interval": 30, + "format": "\uf0c7 {percentage_used:2}%", + "path": "/" + }, + + "network": { + "format-ethernet": "🔌", + "format-wifi": "📡", + "format-disconnected": "🚫", + "format-disabled": "⚠", + "on-click": "iwgtk" + }, + + "sway/workspaces": { + "disable-scroll": true, + "format": "{icon}", + "format-icons": { + "default": "", + "focused": "", + "urgent": "" + } + }, + + "sway/window": {}, + + "tray": {}, + + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "\uf06e", + "deactivated": "\uf070" + }, + "tooltip-format-activated": "Idle inhibitor {status}. It prevents automatic screen locking and hibernation.", + "tooltip-format-deactivated": "Idle inhibitor {status}." + }, + + "sway/language": { + "format": "{flag}" + }, + + "pulseaudio#source": { + "format": "{format_source}", + "format-source": "\uf130", + "format-source-muted": "\uf131", + "tooltip-format": "{source_desc} is on {source_volume}%", + "on-click": "pavucontrol --tab=4", + "on-click-middle": "pactl set-source-mute @DEFAULT_SOURCE@ toggle", + "scroll-step": 0 + }, + + "pulseaudio#sink": { + "format": "{icon}", + "format-muted": "🔇", + "format-bluetooth": "{icon} \uf294", + "tooltip-format": "{desc} is on {volume}%", + "format-icons": { + "default": [ + "🔈", + "🔉", + "🔊", + "📢" + ] + }, + "on-click": "pavucontrol --tab=3", + "on-click-middle": "pactl set-sink-mute @DEFAULT_SINK@ toggle", + "scroll-step": 5 + }, + + "battery": { + "format": "{icon} {capacity}%", + "format-charging": "{icon} {capacity}⚡", + "tooltip-format": "Current capacity: {capacity}%\n\n{timeTo}", + "states": { + "empty": 10, + "low": 20, + "half-low": 40, + "half": 60, + "high": 90, + "full": 100 + }, + "format-icons": { + "empty": "\uf244", + "low": "\uf243", + "half-low": "\uf243", + "half": "\uf242", + "high": "\uf241", + "full": "\uf240" + } + }, + + "clock": { + "tooltip-format": "{:%Y %B}\n{calendar}", + "format": "{:%Y-%m-%d %H:%M}", + "on-click": "emacsclient --eval \"(world-clock)\"", + "on-click-right": "emacsclient --eval \"(calendar)\"", + "interval": 60 + }, + + "custom/recorder": { + "format": "{}", + "return-type": "json", + "exec-on-event": true, + "interval": "once", + "signal": 8, + "exec": "waybar-screen-recorder", + "on-click": "toggle-screen-capture" + }, + + "custom/inbox": { + "format": "{} 📥", + "interval": 60, + "exec": "notmuch count tag:inbox", + "on-click": "sync-mail" + }, + + "custom/sunset": { + "format": "{icon}", + "format-icons": { + "off": "🌞", + "on": "🌛" + }, + "return-type": "json", + "interval": "once", + "signal": 10, + "exec": "waybar-sunset", + "on-click": "waybar-sunset toggle", + "on-click-right": "waybar-sunset rotate", + "exec-if": "waybar-sunset check" + }, + + "custom/vpn": { + "format": "{}", + "return-type": "json", + "exec-on-event": true, + "interval": "once", + "signal": 9, + "exec": "waybar-vpn", + "on-click": "toggle-vpn" + }, + + "custom/notification": { + "tooltip": false, + "format": "{icon}", + "format-icons": { + "none": "🔔", + "notification": "🔔", + "inhibited-none": "🔔", + "inhibited-notification": "🔔", + "dnd-none": "🔕", + "dnd-notification": "🔕", + "dnd-inhibited-none": "🔕", + "dnd-inhibited-notification": "🔕" + }, + "return-type": "json", + "exec": "swaync-client -swb", + "on-click": "swaync-client -t -sw", + "on-click-right": "swaync-client -d -sw", + "on-click-middle": "swaync-client -C -sw", + "escape": true + } + } +] -- cgit v1.3