diff options
Diffstat (limited to 'dotfiles/.config/waybar/modules.json')
-rw-r--r-- | dotfiles/.config/waybar/modules.json | 181 |
1 files changed, 181 insertions, 0 deletions
diff --git a/dotfiles/.config/waybar/modules.json b/dotfiles/.config/waybar/modules.json new file mode 100644 index 0000000..7f0f591 --- /dev/null +++ b/dotfiles/.config/waybar/modules.json @@ -0,0 +1,181 @@ +{ + "sway/mode": { + "format": "<span style=\"italic\">{}</span>" + }, + "mpris": { + "format": "{status_icon} {artist} - {title}", + "format-stopped": "{status_icon} - ", + "status-icons": { + "stopped": "<span color=\"#d6cda3\"></span>", + "paused": "<span color=\"#d6cda3\"></span>", + "playing": "<span color=\"#5b8277\"></span>" + }, + "artist-len": 20, + "title-len": 30 + }, + "tray": { + "icon-size": 16, + "spacing": 10 + }, + "clock": { + "locale": "ja_JP.UTF-8", + "format": "<span font='Sarasa Mono J' weight='600'>{:L%Y年%m月%d日(%a)%H:%M:%S}</span>", + "format-alt": "<span font='Sarasa Mono J' weight='600'>{:%H:%M:%S}</span>", + "tooltip-format": "<span font='Sarasa Mono J'>{calendar}</span>", + "calendar": { + "mode": "month", + "on-scroll": 1, + "format": { + "months": "<span size='13pt' weight='600'>{}</span>", + "weekdays": "{}", + "today": "<span color=\"#b73030\"><b>{}</b></span>" + } + }, + "actions": { + "on-scroll-up": "shift_up", + "on-scroll-down": "shift_down" + }, + "interval": 1 + }, + "cpu": { + "format": "<span color=\"#d6cda3\"></span> {usage}%", + "interval": 3 + }, + "memory": { + "format": "<span color=\"#d6cda3\"></span> {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": "<span color=\"#d6cda3\">{icon}</span> {percent}%", + "format-icons": ["", ""] + }, + "battery#bat0": { + "bat": "BAT0", + "format": "{icon} {capacity}%", + "format-charging": "<span color=\"#5b8277\"></span> {capacity}%", + "format-plugged": "<span color=\"#5b8277\"></span> {capacity}%", + "format-icons": [ + "<span color=\"#b73030\"></span>", + "<span color=\"#b2872f\"></span>", + "<span color=\"#5b8277\"></span>", + "<span color=\"#5b8277\"></span>", + "<span color=\"#5b8277\"></span>" + ] + }, + "battery#bat1": { + "bat": "BAT1", + "format": "{icon} {capacity}%", + "format-charging": "<span color=\"#5b8277\"></span> {capacity}%", + "format-plugged": "<span color=\"#5b8277\"></span> {capacity}%", + "format-icons": [ + "<span color=\"#b73030\"></span>", + "<span color=\"#b2872f\"></span>", + "<span color=\"#5b8277\"></span>", + "<span color=\"#5b8277\"></span>", + "<span color=\"#5b8277\"></span>" + ] + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "<span color=\"#5b8277\"></span>", + "format-ethernet": "<span color=\"#5b8277\"></span>", + "format-linked": "<span color=\"#b2872f\"></span>", + "format-disconnected": "<span color=\"#b2872f\"></span>", + "format-disabled": "<span color=\"#b73030\"></span>", + "format-alt": "<span color=\"#d6cda3\"></span> {ifname}: {bandwidthUpBits}<span color=\"#d6cda3\"></span> {bandwidthDownBits}<span color=\"#d6cda3\"></span>", + "tooltip-format": "{ifname}: {essid} {ipaddr}/{cidr} {bandwidthUpBits}<span color=\"#d6cda3\"></span> {bandwidthDownBits}<span color=\"#d6cda3\"></span>", + "interval": 3 + }, + "wireplumber": { + "scroll-step": 2, // %, can be a float + "format": "<span color=\"#5b8277\">{icon}</span> {volume}%", + "format-bluetooth": "<span color=\"#5b8277\">{icon}</span> {volume}% {format_source}", + "format-muted": "<span color=\"#b2872f\"></span>", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "handsfree": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "$TERMINAL -e ncpamixer" + }, + "custom/rec-status": { + "format": "<span color=\"#5b8277\">{}</span>", + "signal": 5, + "interval": "once", + "exec": "barrecstatus" + }, + "custom/torrent-status": { + "format": "<span color=\"#d6cda3\">{}</span>", + "signal": 10, + "interval": "once", + "exec": "bartorrentstatus" + }, + "custom/mail-status": { + "format": "<span color=\"#d6cda3\"> </span>{}", + "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": " 🇷🇺" + } +} |