From 23f1d446c2e71cb3897b05f6c95324a30823c041 Mon Sep 17 00:00:00 2001 From: Tobi Date: Mon, 15 Nov 2021 21:08:16 +0100 Subject: [PATCH] updated config files --- sway_config | 4 +- waybar.config | 133 +++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 127 insertions(+), 10 deletions(-) diff --git a/sway_config b/sway_config index 522e883..e2dd15d 100644 --- a/sway_config +++ b/sway_config @@ -139,8 +139,8 @@ bindsym $mod+r mode "resize" # class border bground text indicator child_border client.focused #FFA445 #FFA445 #000000 #FFA445 #FFA445 -client.focused_inactive #5B5B5B #5B5B5B #FFFFFF #5B5B5B #5B5B5B -client.unfocused #5B5B5B #5B5B5B #FFFFFF #5B5B5B #5B5B5B +client.focused_inactive #4A4A4A #4A4A4A #FFFFFF #4A4A4A #4A4A4A +client.unfocused #4A4A4A #4A4A4A #FFFFFF #4A4A4A #4A4A4A client.urgent #2F343A #900000 #FFFFFF #900000 #900000 client.placeholder #000000 #0C0C0C #FFFFFF #000000 #0C0C0C diff --git a/waybar.config b/waybar.config index 7f0fc07..ac64ba4 100644 --- a/waybar.config +++ b/waybar.config @@ -1,16 +1,133 @@ + { - "layer": "top", + // "layer": "top", // Waybar at top layer + // "position": "bottom", // Waybar position (top|bottom|left|right) + "height": 25, // Waybar height (to be removed for auto height) + // "width": 1280, // Waybar width + // Choose the order of the modules "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": ["sway/window"], - "modules-right": ["battery", "clock"], - "sway/window": { - "max-length": 50 + // "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "sway/language", "battery", "battery#bat2", "clock", "tray"], + "modules-right": ["network", "cpu", "memory", "temperature", "pulseaudio", "backlight", "clock", "tray"], + // Modules configuration + "sway/workspaces": { + "disable-scroll": true, + "all-outputs": true, + "format": "{name}: {icon}", + "format-icons": { + "1": "", + "urgent": "", + "focused": "", + "default": "" + } }, - "battery": { - "format": "{capacity}% {icon}", - "format-icons": ["", "", "", "", ""] + "sway/mode": { + "format": "{}" + }, + "mpd": { + "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ ", + "format-disconnected": "Disconnected ", + "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", + "unknown-tag": "N/A", + "interval": 2, + "consume-icons": { + "on": " " + }, + "random-icons": { + "off": " ", + "on": " " + }, + "repeat-icons": { + "on": " " + }, + "single-icons": { + "on": "1 " + }, + "state-icons": { + "paused": "", + "playing": "" + }, + "tooltip-format": "MPD (connected)", + "tooltip-format-disconnected": "MPD (disconnected)" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + // "icon-size": 21, + "spacing": 10 }, "clock": { - "format-alt": "{:%a, %d. %b %H:%M}" + "timezone": "America/Sao_Paulo", + "tooltip-format": "{:%Y %B}\n{calendar}", + "format": "{:%d/%m %H:%M:%S}" + }, + "cpu": { + "format": "{usage}% ", + "tooltip": false + }, + "memory": { + "format": "{}% " + }, + "temperature": { + // "thermal-zone": 2, + // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "critical-threshold": 80, + // "format-critical": "{temperatureC}°C {icon}", + "format": "{temperatureC}°C {icon}", + "format-icons": ["", "", ""] + }, + "backlight": { + // "device": "acpi_video1", + "format": "{percent}% {icon}", + "format-icons": ["", ""] + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] + }, + "battery#bat2": { + "bat": "BAT2" + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "{essid} ({signalStrength}%) ", + "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{volume}% {icon} {format_source}", + "format-bluetooth": "{volume}% {icon} {format_source}", + "format-bluetooth-muted": " {icon} {format_source}", + "format-muted": " {format_source}", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "pavucontrol" } }