From 7c903ed6a622d8fff531c52c756edaa70d94276b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Wed, 6 Nov 2024 00:06:47 +0300 Subject: waybar: cleanup and style changes Move around some modules, cleanup unused stuff, update style a bit. --- dotfiles/.config/waybar/config | 49 ++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 31 deletions(-) (limited to 'dotfiles/.config/waybar/config') 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": "{icon} {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": " {essid}", - "format-ethernet": " {ifname}", - "format-linked": " {ifname}", - "format-disconnected": " Disconnected", + "format-wifi": " {essid}", + "format-ethernet": " {ifname}", + "format-linked": " {ifname}", + "format-disconnected": " 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": "{icon} {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 " } } -- cgit v1.2.3