From 80f43743f73a4c7dfebc2bd4157099220c0b4ee8 Mon Sep 17 00:00:00 2001 From: exu Date: Thu, 23 Nov 2023 10:44:34 +0100 Subject: [PATCH] Modify waybar for sway --- arch-config/.config/waybar/config.json | 138 ++++++++++++------------- 1 file changed, 68 insertions(+), 70 deletions(-) diff --git a/arch-config/.config/waybar/config.json b/arch-config/.config/waybar/config.json index d598115a..fef0889d 100644 --- a/arch-config/.config/waybar/config.json +++ b/arch-config/.config/waybar/config.json @@ -1,70 +1,68 @@ -{ - "layer": "top", - "position": "bottom", - "height": 25, - "spacing": 10, - - "modules-left": ["wlr/workspaces", "hyprland/window", "hyprland/submap"], - "modules-center": ["clock"], - "modules-right": ["mpris", "idle_inhibitor", "battery", "tray"], - - "wlr/workspaces": { - "format": "{name}: {icon}", - "format-icons": { - "urgent": "", - "active": "", - "default": "" - }, - "sort-by-number": true - }, - "hyprland/window": { - "format": "{}", - "separate-outputs": true - }, - "hyprland/submap": { - "format": "{}", - "tooltip": false - }, - "mpris": { - "format": "{status_icon} {dynamic}", - "format-paused": "{status_icon} {dynamic}", - "status-icons": { - "playing": "▶", - "paused": "⏸" - } - }, - "battery": { - "bat": "BAT0", - "states": { - "warning": 30, - "critical": 15 - }, - "format": "{capacity}% {icon}", - "format-charging": "{capacity}% ", - "format-plugged": "{capacity}% ", - "format-alt": "{time} {icon}", - "format-icons": ["", "", "", "", ""] - }, - "clock": { - "timezone": "Europe/Zurich", - "tooltip-format": "{:%Y %B}\n{calendar}", - "format-alt": "{:%Y-%m-%d}" - }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "", - "deactivated": "" - } - }, - "tray": { - "icon-size": 21, - "spacing": 10 - }, - "custom/mpris": { - "exec": "~/.scripts/polybar/player-mpris-tail.py -f '{icon} {:artist:t10:{artist}:}{:artist: - :}{:t25:{title}:}'", - "on-click": "~/.scripts/polybar/player-mpris-tail.py play-pause &", - "on-click-middle": "~/.scripts/polybar/player-mpris-tail.py next &", - "on-click-right": "~/.scripts/polybar/player-mpris-tail.py previous &" - } -} +{ + "layer": "top", + "position": "bottom", + "height": 25, + "spacing": 10, + + "modules-left": ["wlr/workspaces", "sway/window", "sway/mode"], + "modules-center": ["clock"], + "modules-right": ["mpris", "idle_inhibitor", "battery", "tray"], + + "wlr/workspaces": { + "format": "{name}: {icon}", + "format-icons": { + "urgent": "", + "active": "", + "default": "" + }, + "sort-by-number": true + }, + "sway/window": { + "max-length": 40 + }, + "sway/mode": { + "tooltip": false + }, + "mpris": { + "format": "{status_icon} {dynamic}", + "format-paused": "{status_icon} {dynamic}", + "status-icons": { + "playing": "▶", + "paused": "⏸" + } + }, + "battery": { + "bat": "BAT0", + "states": { + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + "format-icons": ["", "", "", "", ""] + }, + "clock": { + "timezone": "Europe/Zurich", + "tooltip-format": "{:%Y %B}\n{calendar}", + "format-alt": "{:%Y-%m-%d}" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + "icon-size": 21, + "spacing": 10 + }, + "custom/mpris": { + "exec": "~/.scripts/polybar/player-mpris-tail.py -f '{icon} {:artist:t10:{artist}:}{:artist: - :}{:t25:{title}:}'", + "on-click": "~/.scripts/polybar/player-mpris-tail.py play-pause &", + "on-click-middle": "~/.scripts/polybar/player-mpris-tail.py next &", + "on-click-right": "~/.scripts/polybar/player-mpris-tail.py previous &" + } +}