forked from Bun/nixos-config
The big variable overhaul
This commit is contained in:
parent
3f0a235dc8
commit
6dab8fc029
36 changed files with 269 additions and 326 deletions
|
@ -1,9 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
{pkgs, outputs, ...}: {
|
||||
programs.waybar = let
|
||||
colors = import ../common/colors.nix;
|
||||
displays = import ../common/displays.nix;
|
||||
fonts = import ../common/fonts.nix;
|
||||
|
||||
swayWorkspacesModule = {
|
||||
format = "{name}";
|
||||
enable-bar-scroll = true;
|
||||
|
@ -265,7 +261,7 @@
|
|||
name = "bar1";
|
||||
position = "top";
|
||||
layer = "bottom";
|
||||
output = [displays.d1 "VGA-1"];
|
||||
output = [outputs.displays.d1 "VGA-1"];
|
||||
modules-left = ["sway/workspaces" "sway/window"];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
|
@ -296,7 +292,7 @@
|
|||
name = "bar2";
|
||||
position = "top";
|
||||
layer = "bottom";
|
||||
output = [displays.d2];
|
||||
output = [outputs.displays.d2];
|
||||
modules-left = ["sway/workspaces" "sway/window"];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
|
@ -321,7 +317,7 @@
|
|||
name = "bar3";
|
||||
position = "top";
|
||||
layer = "bottom";
|
||||
output = [displays.d3];
|
||||
output = [outputs.displays.d3];
|
||||
modules-left = ["sway/workspaces" "sway/window"];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
|
@ -386,12 +382,12 @@
|
|||
border: 0;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
font-family: ${fonts.main}, ${fonts.nerd};
|
||||
font-family: ${outputs.look.fonts.main}, ${outputs.look.fonts.nerd};
|
||||
font-size: 15.5px;
|
||||
color: #${colors.text};
|
||||
color: #${outputs.look.colors.text};
|
||||
}
|
||||
#waybar {
|
||||
background: #${colors.dark};
|
||||
background: #${outputs.look.colors.dark};
|
||||
}
|
||||
#workspaces {
|
||||
padding: 0 6px 0 0;
|
||||
|
@ -416,15 +412,15 @@
|
|||
min-width: 20px;
|
||||
}
|
||||
#workspaces button.visible {
|
||||
border-bottom: 3px solid #${colors.prime};
|
||||
background: #${colors.mid};
|
||||
border-bottom: 3px solid #${outputs.look.colors.prime};
|
||||
background: #${outputs.look.colors.mid};
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
border-bottom: 3px solid #${colors.urgent};
|
||||
border-bottom: 3px solid #${outputs.look.colors.urgent};
|
||||
}
|
||||
#workspaces button:hover {
|
||||
box-shadow: none;
|
||||
background: #${colors.light};
|
||||
background: #${outputs.look.colors.light};
|
||||
}
|
||||
#scratchpad {
|
||||
margin-left: 2px;
|
||||
|
@ -460,13 +456,13 @@
|
|||
color: #888;
|
||||
}
|
||||
#custom-weather {
|
||||
border-bottom: 3px solid #${colors.prime};
|
||||
border-bottom: 3px solid #${outputs.look.colors.prime};
|
||||
}
|
||||
#custom-weather2 {
|
||||
border-bottom: 3px solid #c75bd3;
|
||||
}
|
||||
#custom-notifs {
|
||||
border-bottom: 3px solid #${colors.prime};
|
||||
border-bottom: 3px solid #${outputs.look.colors.prime};
|
||||
}
|
||||
#custom-notifs.disabled {
|
||||
color: #888;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue