From 8f01f1417063da96214e1e2a011cb681b021a70a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sat, 3 May 2025 01:48:57 +0300 Subject: waybar: config cleanup and style changes --- dotfiles/.config/waybar/modules.json | 168 +++++++++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 dotfiles/.config/waybar/modules.json (limited to 'dotfiles/.config/waybar/modules.json') diff --git a/dotfiles/.config/waybar/modules.json b/dotfiles/.config/waybar/modules.json new file mode 100644 index 0000000..2c93756 --- /dev/null +++ b/dotfiles/.config/waybar/modules.json @@ -0,0 +1,168 @@ +{ + "sway/mode": { + "format": "{}" + }, + "mpris": { + "format": "{status_icon} {artist} - {title}", + "format-stopped": "{status_icon} - ", + "status-icons": { + "stopped": "", + "paused": "", + "playing": "" + }, + "artist-len": 25, + "title-len": 40 + }, + "tray": { + "icon-size": 16, + "spacing": 10 + }, + "clock": { + "format": "{:%Y年%m月%d日 %H:%M:%S}", + "tooltip-format": "{calendar}", + "calendar": { + "mode": "year", + "mode-mon-col": 3 + }, + "interval": 1 + }, + "cpu": { + "format": " {load}%", + "interval": 2 + }, + "memory": { + "format": " {used:0.3f}G", + "states": { + "warning": 90 + }, + "interval": 10 + }, + "temperature": { + // "thermal-zone": 2, + // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "critical-threshold": 80, + // "format-critical": "{temperatureC}°C {icon}", + "format": "{temperatureC}°C {icon}", + "format-icons": ["", "", ""] + }, + "backlight": { + // "device": "acpi_video1", + "format": "{icon} {percent}%", + "format-icons": ["", ""] + }, + "battery#bat0": { + "bat": "BAT0", + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-plugged": " {capacity}%", + "format-icons": [ + "", + "", + "", + "", + "" + ] + }, + "battery#bat1": { + "bat": "BAT1", + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-plugged": " {capacity}%", + "format-icons": [ + "", + "", + "", + "", + "" + ] + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": " {essid}", + "format-ethernet": " {ifname}", + "format-linked": " {ifname}", + "format-disconnected": " disconnected", + "format-alt": "{ifname}: {ipaddr}/{cidr}", + "tooltip-format": "{ifname}: {ipaddr}/{cidr}" + }, + "wireplumber": { + "scroll-step": 2, // %, can be a float + "format": "{icon} {volume}%", + "format-bluetooth": "{icon} {volume}% {format_source}", + "format-muted": "", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "handsfree": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "$TERMINAL -e ncpamixer" + }, + "custom/rec-status": { + "format": "{}", + "signal": 5, + "interval": "once", + "exec": "barrecstatus" + }, + "custom/torrent-status": { + "format": "{}", + "signal": 10, + "interval": "once", + "exec": "bartorrentstatus" + }, + "custom/mail-status": { + "format": "󰺻 {}", + "signal": 9, + "interval": "once", + "exec": "barmailstatus", + "tooltip": false + }, + "custom/pac-status": { + "format": " {}", + "signal": 7, + "interval": "once", + "exec": "barpacstatus" + }, + "custom/news-status": { + "format": " {}", + "signal": 8, + "interval": "once", + "exec": "barnewsstatus", + "tooltip": false + }, + "custom/weather": { + "format": "{}", + "interval": 180, + "exec": "barweather" + }, + "custom/ds4battery": { + "format": "🎮 {}", + "interval": 180, + "exec": "bards4battery" + }, + "custom/batwatt": { + "return-type": "json", + "interval": 10, + "exec-if": "test -e /sys/class/power_supply/BAT0", + "exec": "barbatwatt", + "exec-on-event": true, + "on-click": "" + }, + "custom/swaykbd": { + "format": "{}", + "exec": "swaykbd", + "tooltip": false + }, + "niri/language": { + "on-click": "niri msg action switch-layout next", + "on-click-right": "niri msg action switch-layout prev", + "format-en": " 🇺🇸 ", + "format-es": " 🇲🇽 ", + "format-ru": " 🇷🇺 " + }, +} -- cgit v1.2.3