diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2024-11-06 00:06:47 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2024-11-06 00:06:47 +0300 |
commit | 7c903ed6a622d8fff531c52c756edaa70d94276b (patch) | |
tree | 420491b7b9a0678d69e92a937d7909287816664b /dotfiles/.config/waybar/config | |
parent | 21d054a3f01d03d2f70b5f31ec5b917571a29120 (diff) | |
download | swayrice-7c903ed6a622d8fff531c52c756edaa70d94276b.tar.gz swayrice-7c903ed6a622d8fff531c52c756edaa70d94276b.zip |
waybar: cleanup and style changes
Move around some modules, cleanup unused stuff, update style a bit.
Diffstat (limited to 'dotfiles/.config/waybar/config')
-rw-r--r-- | dotfiles/.config/waybar/config | 49 |
1 files changed, 18 insertions, 31 deletions
diff --git a/dotfiles/.config/waybar/config b/dotfiles/.config/waybar/config index 7d7a192..65e8e99 100644 --- a/dotfiles/.config/waybar/config +++ b/dotfiles/.config/waybar/config @@ -1,6 +1,6 @@ // vim: filetype=json { - "layer": "bottom", + "layer": "top", "height": 32, "modules-left": [ "sway/workspaces", @@ -15,16 +15,15 @@ ], "modules-right": [ "custom/rec-status", - "niri/language", "custom/swaykbd", "custom/mail-status", - "custom/pac-status", "memory", "backlight", "battery#bat0", "battery#bat1", "custom/batwatt", "network", + "niri/language", "tray" ], "sway/mode": { @@ -74,7 +73,12 @@ "spacing": 10 }, "clock": { - "format": "{:%Y-%m-%d %H:%M:%S}", + "format": "{:%Y年%m月%d日 %H:%M:%S}", + "tooltip-format": "{calendar}", + "calendar": { + "mode": "year", + "mode-mon-col": 3 + }, "interval": 1 }, "cpu": { @@ -99,7 +103,7 @@ "backlight": { // "device": "acpi_video1", "format": "<span color=\"#5b8277\">{icon}</span> {percent}%", - "format-icons": ["", ""] + "format-icons": ["", ""] }, "battery#bat0": { "bat": "BAT0", @@ -129,34 +133,13 @@ }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface - "format-wifi": "<span color=\"#5b8277\"></span> {essid}", - "format-ethernet": "<span color=\"#5b8277\"></span> {ifname}", - "format-linked": "<span color=\"#5b8277\"></span> {ifname}", - "format-disconnected": "<span color=\"#5b8277\">⚠</span> Disconnected", + "format-wifi": "<span color=\"#5b8277\"></span> {essid}", + "format-ethernet": "<span color=\"#5b8277\"></span> {ifname}", + "format-linked": "<span color=\"#5b8277\"></span> {ifname}", + "format-disconnected": "<span color=\"#5b8h277\">⚠</span> Disconnected", "format-alt": "{ifname}: {ipaddr}/{cidr}", "tooltip-format": "{ifname}: {ipaddr}/{cidr}" }, - "custom/left-arrow-cyan": { - "format": "" - }, - "custom/right-arrow-cyan": { - "format": "" - }, - "custom/left-arrow-gray": { - "format": "" - }, - "custom/left-arrow-black": { - "format": "" - }, - "custom/right-arrow-black": { - "format": "" - }, - "custom/left-decorator-black": { - "format": "" - }, - "custom/right-decorator-black": { - "format": "" - }, "pulseaudio": { "scroll-step": 2, // %, can be a float "format": "<span color=\"#5b8277\">{icon}</span> {volume}%", @@ -231,6 +214,10 @@ "tooltip": false }, "niri/language": { - "format": "⌨️ {short}" + "on-click": "niri msg action switch-layout next", + "on-click-right": "niri msg action switch-layout prev", + "format-en": " 🇺🇸 EN ", + "format-es": " 🇲🇽 ES ", + "format-ru": " 🇷🇺 RU " } } |