feat: add hiding waybar

This commit is contained in:
Swarsel 2024-12-15 15:02:47 +01:00
parent 65c8c2430e
commit 11bf6288c4
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
3 changed files with 16 additions and 2 deletions

View file

@ -8924,7 +8924,13 @@ Currently, I am too lazy to explain every option here, but most of it is very se
modifier = "Mod4"; modifier = "Mod4";
terminal = "kitty"; terminal = "kitty";
menu = "fuzzel"; menu = "fuzzel";
bars = [{ command = "waybar"; }]; bars = [{
command = "waybar";
mode = "hide";
hiddenState = "hide";
position = "top";
extraConfig = "modifier Mod4";
}];
keybindings = keybindings =
let let
inherit (config.wayland.windowManager.sway.config) modifier; inherit (config.wayland.windowManager.sway.config) modifier;

View file

@ -26,7 +26,13 @@ in
modifier = "Mod4"; modifier = "Mod4";
terminal = "kitty"; terminal = "kitty";
menu = "fuzzel"; menu = "fuzzel";
bars = [{ command = "waybar"; }]; bars = [{
command = "waybar";
mode = "hide";
hiddenState = "hide";
position = "top";
extraConfig = "modifier Mod4";
}];
keybindings = keybindings =
let let
inherit (config.wayland.windowManager.sway.config) modifier; inherit (config.wayland.windowManager.sway.config) modifier;

View file

@ -9,6 +9,8 @@
}; };
settings = { settings = {
mainBar = { mainBar = {
ipc = true;
id = "bar-0";
layer = "top"; layer = "top";
position = "top"; position = "top";
modules-left = [ "sway/workspaces" "custom/outer-right-arrow-dark" "sway/window" ]; modules-left = [ "sway/workspaces" "custom/outer-right-arrow-dark" "sway/window" ];