From 86f90a498987e7753882671d7875236994414976 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Mon, 10 Mar 2025 23:35:39 +0100 Subject: waybar fix include renamed waybar additional files for the include to work --- home/.config/waybar/additional.d/desktop | 5 ----- home/.config/waybar/additional.d/desktop.json | 5 +++++ home/.config/waybar/additional.d/laptop | 24 ------------------------ home/.config/waybar/additional.d/laptop.json | 24 ++++++++++++++++++++++++ home/.config/waybar/config | 2 +- 5 files changed, 30 insertions(+), 30 deletions(-) delete mode 100644 home/.config/waybar/additional.d/desktop create mode 100644 home/.config/waybar/additional.d/desktop.json delete mode 100644 home/.config/waybar/additional.d/laptop create mode 100644 home/.config/waybar/additional.d/laptop.json diff --git a/home/.config/waybar/additional.d/desktop b/home/.config/waybar/additional.d/desktop deleted file mode 100644 index 58c2f43..0000000 --- a/home/.config/waybar/additional.d/desktop +++ /dev/null @@ -1,5 +0,0 @@ -{ - "modules-center": ["sway/window"], - "modules-right": ["custom/sshd", "pulseaudio", "sway/language", -"clock", "tray"] -} diff --git a/home/.config/waybar/additional.d/desktop.json b/home/.config/waybar/additional.d/desktop.json new file mode 100644 index 0000000..58c2f43 --- /dev/null +++ b/home/.config/waybar/additional.d/desktop.json @@ -0,0 +1,5 @@ +{ + "modules-center": ["sway/window"], + "modules-right": ["custom/sshd", "pulseaudio", "sway/language", +"clock", "tray"] +} diff --git a/home/.config/waybar/additional.d/laptop b/home/.config/waybar/additional.d/laptop deleted file mode 100644 index 9192cf0..0000000 --- a/home/.config/waybar/additional.d/laptop +++ /dev/null @@ -1,24 +0,0 @@ -{ - "modules-center": [], - "modules-right": ["custom/sshd", "backlight", "battery", "pulseaudio", "sway/language", "clock", "tray"], - // Modules configuration - "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": ["", "", "", "", ""] - } -} diff --git a/home/.config/waybar/additional.d/laptop.json b/home/.config/waybar/additional.d/laptop.json new file mode 100644 index 0000000..9192cf0 --- /dev/null +++ b/home/.config/waybar/additional.d/laptop.json @@ -0,0 +1,24 @@ +{ + "modules-center": [], + "modules-right": ["custom/sshd", "backlight", "battery", "pulseaudio", "sway/language", "clock", "tray"], + // Modules configuration + "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": ["", "", "", "", ""] + } +} diff --git a/home/.config/waybar/config b/home/.config/waybar/config index 2479866..f521fcf 100644 --- a/home/.config/waybar/config +++ b/home/.config/waybar/config @@ -2,7 +2,7 @@ "position": "bottom", // Waybar position (top|bottom|left|right) "height": 30, // Waybar height (to be removed for auto height) "modules-left": ["custom/osname", "sway/workspaces"], - "include" : ["~/.config/waybar/additional.d/*"], + "include" : ["~/.config/waybar/additional.d/*.json"], // Modules configuration "custom/osname": { "format": " wzul ", -- cgit v1.2.3-70-g09d2