sway: improve waybar text size
This commit is contained in:
parent
de685236a0
commit
45df0954f4
|
@ -91,6 +91,18 @@ in
|
||||||
description = "command to run that populates the status section of the topbar";
|
description = "command to run that populates the status section of the topbar";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
sane.gui.sway.waybar.extra_style = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = ''
|
||||||
|
/* default font-size is about 14px, which is good for moby, but not quite for larger displays */
|
||||||
|
window#waybar {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
extra CSS rules to append to ~/.config/waybar/style.css
|
||||||
|
'';
|
||||||
|
};
|
||||||
sane.gui.sway.waybar.top = mkOption {
|
sane.gui.sway.waybar.top = mkOption {
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
# `attrsOf types.anything` (v.s. plain `attrs`) causes merging of the toplevel items.
|
# `attrsOf types.anything` (v.s. plain `attrs`) causes merging of the toplevel items.
|
||||||
|
@ -228,7 +240,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
".config/waybar/style.css".symlink.text =
|
".config/waybar/style.css".symlink.text =
|
||||||
builtins.readFile ./waybar-style.css;
|
(builtins.readFile ./waybar-style.css) + cfg.waybar.extra_style;
|
||||||
|
|
||||||
".config/sway/config" = lib.mkIf cfg.installConfigs {
|
".config/sway/config" = lib.mkIf cfg.installConfigs {
|
||||||
symlink.target = import ./sway-config.nix {
|
symlink.target = import ./sway-config.nix {
|
||||||
|
|
|
@ -200,6 +200,8 @@ in
|
||||||
# we manage the greeter ourselves (TODO: merge this into sway config as well)
|
# we manage the greeter ourselves (TODO: merge this into sway config as well)
|
||||||
useGreeter = false;
|
useGreeter = false;
|
||||||
waybar.top = import ./waybar-top.nix;
|
waybar.top = import ./waybar-top.nix;
|
||||||
|
# reset extra waybar style
|
||||||
|
waybar.extra_style = "";
|
||||||
config = {
|
config = {
|
||||||
# N.B. missing from upstream sxmo config here is:
|
# N.B. missing from upstream sxmo config here is:
|
||||||
# - `bindsym $mod+g exec sxmo_hook_locker.sh`
|
# - `bindsym $mod+g exec sxmo_hook_locker.sh`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user