From 0f21e5706768766e79beb7e1530d0bdeb1154588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Thallis?= Date: Sat, 13 Apr 2024 23:21:35 -0300 Subject: [PATCH] Use Waybar --- .config/sway/config | 9 +-------- .config/waybar/config.jsonc | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 .config/waybar/config.jsonc diff --git a/.config/sway/config b/.config/sway/config index 51b3ac7..3f25cf6 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -211,14 +211,7 @@ bindsym $mod+r mode "resize" bar { position top - # When the status_command prints a new line to stdout, swaybar updates. - # The default just shows the current date and time. - status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done - - colors { - statusline #ffffff - background #323232 - inactive_workspace #32323200 #32323200 #5c5c5c + swaybar_command waybar } } diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc new file mode 100644 index 0000000..98a2394 --- /dev/null +++ b/.config/waybar/config.jsonc @@ -0,0 +1,18 @@ + + +{ + "layer": "top", + "modules-left": ["sway/workspaces", "sway/mode"], + "modules-center": ["sway/window"], + "modules-right": ["battery", "clock"], + "sway/window": { + "max-length": 50 + }, + "battery": { + "format": "{capacity}% {icon}", + "format-icons": ["", "", "", "", ""] + }, + "clock": { + "format-alt": "{:%a, %d. %b %H:%M}" + } +}