From ad9c557d87d5e9aa7bb0033eb26e1a2d339610a9 Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:30:08 +0100 Subject: Remove workspace names --- waybar/config | 16 ++++++++-------- waybar/style.css | 4 ++++ 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'waybar') diff --git a/waybar/config b/waybar/config index aba681a..1fcffb3 100644 --- a/waybar/config +++ b/waybar/config @@ -2,6 +2,7 @@ "height": 30, "spacing": 4, "modules-left": ["sway/workspaces", "sway/mode"], + "modules-center": ["sway/window"], "modules-right": ["tray", "custom/lock", "custom/scratchpad_indicator", "network#vpnovpn", "network#vpnwg", "network#e", "network#wl", "network", "cpu", "memory", "backlight", "pulseaudio", "battery", "clock"], "custom/spotify": { "exec": "/usr/bin/python3 ~/.config/waybar/scripts/mediaplayer.py --player spotify", @@ -14,14 +15,13 @@ "sway/workspaces": { "disable-scroll": true, "all-outputs": false, - "format": "{name}{icon}", - "format-icons": { - "1": ": terminal", - "2": ": firefox", - "3": ": discord", - "4": ": spotify", - "5": ": thunderbird", - "default": "" + "format": "{name}", + }, + "sway/window": { + "max-length": 80, + "tooltip": false, + "rewrite": { + "": "Desktop", } }, "tray": { diff --git a/waybar/style.css b/waybar/style.css index d7ac024..3e53a9d 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -25,6 +25,10 @@ button { border-radius: 0; } +#window { + padding: 0 5px; +} + /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ #workspaces button { -- cgit v1.2.3-70-g09d2