From c2acdf9cca1de631c7d1c60d7cfba2a7ab816e59 Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Wed, 12 Nov 2025 10:27:37 +0100 Subject: updated waybar it's a bit wonky but now all modules have a constant width --- nvim/lua/plugins/nvim-lspconfig.lua | 5 +++++ scripts/set_background | 2 +- wallust/wallust.toml | 2 +- waybar/config | 34 ++++++++++++++++++++++++++++++---- 4 files changed, 37 insertions(+), 6 deletions(-) diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua index 713a87b..45f77b7 100644 --- a/nvim/lua/plugins/nvim-lspconfig.lua +++ b/nvim/lua/plugins/nvim-lspconfig.lua @@ -112,6 +112,11 @@ local config = function() lsp.config("zls", { capabilities = capabilities, }) + -- Python + lsp.enable("pyright") + lsp.config("pyright", { + capabilities = capabilities, + }) end return { diff --git a/scripts/set_background b/scripts/set_background index 161a272..9a29ffa 100755 --- a/scripts/set_background +++ b/scripts/set_background @@ -14,7 +14,7 @@ wallust run $argv[1]; and begin set -U img $argv[1] swww img $argv[1] makoctl reload - notify-send -i $argv[1] "Wallust" "Changed wallpaper and palette." + notify-send -i $img "Wallust" "Changed wallpaper and palette." end; or begin notify-send -u critical "Wallust" "Failed to change palette" end; diff --git a/wallust/wallust.toml b/wallust/wallust.toml index 6214911..94a6665 100644 --- a/wallust/wallust.toml +++ b/wallust/wallust.toml @@ -1,4 +1,4 @@ -backend = "fastresize" +backend = "kmeans" check_contrast = true color_space = "lab" fallback_generator = "complementary" diff --git a/waybar/config b/waybar/config index a4b1dfc..675e08d 100644 --- a/waybar/config +++ b/waybar/config @@ -26,8 +26,19 @@ "on-click": "foot -T nmtui -o pad=0x0 nmtui" }, "pulseaudio": { - "format": "{icon} {volume}%", - "format-muted": "󰝟 {volume}%", + "states": { + "notempty": 9, + "notfull": 99, + }, + "format": "{icon}{volume}%", + "format-notfull": "{icon} {volume}%", + "format-notempty": "{icon} {volume}%", + "format-muted": "󰝟{volume}%", + "format-muted-notfull": "󰝟 {volume}%", + "format-muted-notempty": "󰝟 {volume}%", + "format-bluetooth": "{icon}{volume}%", + "format-bluetooth-notfull": "{icon} {volume}%", + "format-bluetooth-notempty": "{icon} {volume}%", "format-icons": { "default": ["󰕿", "󰖀", "󰕾"], }, @@ -44,7 +55,13 @@ }, "backlight": { "device": "intel_backlight", - "format": "{icon} {percent}%", + "states": { + "notempty": 10, + "notfull": 100, + }, + "format": "{icon} {percent}%", + "format-notfull": "{icon}{percent}%", + "format-notempty": "{icon} {percent}%", "format-icons": ["", "", "", "", "", "", "", "", ""], "tooltip": false }, @@ -77,21 +94,30 @@ "tooltip-format": "{used:0.1f}GiB / {total:0.1f}GiB" }, "disk": { - "format": "󰋊 {percentage_used}%", + "states": { + "notempty": 10, + "notfull": 100, + }, + "format": "󰋊 {percentage_used}%", + "format-notfull": "󰋊{percentage_used}%", + "format-notempty": "󰋊 {percentage_used}%", "tooltip-format": "{used} / {total}" }, "battery": { "interval": 5, "states": { + "notempty": 9, "warning": 25, "notfull": 99, }, "format": "{icon}{capacity}%", "format-notfull": "{icon} {capacity}%", "format-warning": "{icon} {capacity}%", + "format-notempty": "{icon} {capacity}%", "format-charging": "󰂄{capacity}%", "format-charging-notfull": "󰂄 {capacity}%", "format-charging-warning": "󰂄 {capacity}%", + "format-charging-notempty": "󰂄 {capacity}%", "format-icons": ["󰂎","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"], }, "clock": { -- cgit v1.2.3