From 6d625a2cbb5d5d2523beed86d5ad9f5d713735e5 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 8 Nov 2024 10:56:30 +0300 Subject: [PATCH] Waybar: Fix bat margin. --- home/config/waybar/config/default.nix | 2 ++ home/config/waybar/style/Plugin.nix | 6 ++---- module/Keyd.nix | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/home/config/waybar/config/default.nix b/home/config/waybar/config/default.nix index db6c5289..1f05933d 100644 --- a/home/config/waybar/config/default.nix +++ b/home/config/waybar/config/default.nix @@ -94,8 +94,10 @@ in { "group/batteryinfo" = { orientation = "horizontal"; modules = [ + "custom/tag1" "battery" "custom/powerlimit" + "custom/tag2" ]; }; pulseaudio = { diff --git a/home/config/waybar/style/Plugin.nix b/home/config/waybar/style/Plugin.nix index af7fab21..d4c5272c 100644 --- a/home/config/waybar/style/Plugin.nix +++ b/home/config/waybar/style/Plugin.nix @@ -10,13 +10,11 @@ in { # instead of the whole group. text = '' /* See the ISSUE above. */ - #custom-tag1, - #battery { + #custom-tag1 { padding-left: ${paddingH}; } - #custom-tag2, - #custom-powerlimit { + #custom-tag2 { padding-right: ${paddingH}; } diff --git a/module/Keyd.nix b/module/Keyd.nix index dea1f00c..1539f570 100644 --- a/module/Keyd.nix +++ b/module/Keyd.nix @@ -25,6 +25,7 @@ in { backspace = "delete"; # Delete key on backspace. capslock = "overload(control, esc)"; # Ctrl/esc combo. compose = "layer(layer_number)"; # Number input layer. + delete = "backslash"; esc = "print"; # System controls. leftcontrol = "overload(layer_alternative, leftcontrol)"; # Alternative layer for home, end etc. rightcontrol = "layer(layer_control)"; # Media and other controls.