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,16 +1,12 @@
|
|||
{pkgs, config, ...}: {
|
||||
{pkgs, config, outputs, ...}: {
|
||||
# Enable Rofi
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
terminal = "foot";
|
||||
font = let
|
||||
fonts = import ../common/fonts.nix;
|
||||
in "${fonts.main} 14";
|
||||
font = "${outputs.look.fonts.main} 14";
|
||||
theme = let
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
border = import ../common/border.nix;
|
||||
colors = import ../common/colors.nix;
|
||||
in {
|
||||
"*" = {
|
||||
lightbg = mkLiteral "#EEE8D5";
|
||||
|
@ -19,24 +15,24 @@
|
|||
red = mkLiteral "#DC322F";
|
||||
background-color = mkLiteral "#00000000";
|
||||
separatorcolor = mkLiteral "#00000000";
|
||||
normal-foreground = mkLiteral "#${colors.text}";
|
||||
normal-background = mkLiteral "#${colors.dark}1A";
|
||||
urgent-foreground = mkLiteral "#${colors.urgent}";
|
||||
active-foreground = mkLiteral "#${colors.split}";
|
||||
selected-active-foreground = mkLiteral "#${colors.prime}";
|
||||
background = mkLiteral "#${colors.dark}B3";
|
||||
bordercolor = mkLiteral "#${colors.prime}";
|
||||
normal-foreground = mkLiteral "#${outputs.look.colors.text}";
|
||||
normal-background = mkLiteral "#${outputs.look.colors.dark}1A";
|
||||
urgent-foreground = mkLiteral "#${outputs.look.colors.urgent}";
|
||||
active-foreground = mkLiteral "#${outputs.look.colors.split}";
|
||||
selected-active-foreground = mkLiteral "#${outputs.look.colors.prime}";
|
||||
background = mkLiteral "#${outputs.look.colors.dark}B3";
|
||||
bordercolor = mkLiteral "#${outputs.look.colors.prime}";
|
||||
selected-normal-foreground = mkLiteral "#FFFFFF";
|
||||
selected-normal-background = mkLiteral "#${colors.prime}80";
|
||||
border-color = mkLiteral "#${colors.prime}";
|
||||
urgent-background = mkLiteral "#${colors.accent}26";
|
||||
active-background = mkLiteral "#${colors.accent}26";
|
||||
selected-active-background = mkLiteral "#${colors.split}54";
|
||||
selected-normal-background = mkLiteral "#${outputs.look.colors.prime}80";
|
||||
border-color = mkLiteral "#${outputs.look.colors.prime}";
|
||||
urgent-background = mkLiteral "#${outputs.look.colors.accent}26";
|
||||
active-background = mkLiteral "#${outputs.look.colors.accent}26";
|
||||
selected-active-background = mkLiteral "#${outputs.look.colors.split}54";
|
||||
};
|
||||
"#window" = {
|
||||
background-color = mkLiteral "@background";
|
||||
width = 500;
|
||||
border = mkLiteral "${border.weight}";
|
||||
border = mkLiteral "${outputs.look.border.string}";
|
||||
padding = 5;
|
||||
};
|
||||
"#message" = {
|
||||
|
@ -161,13 +157,13 @@
|
|||
case $RET in
|
||||
Default) swaymsg reload ;;
|
||||
Wide) swaymsg "
|
||||
output ${displays.d1} enable pos 1680 0 mode 1680x1050@59.954Hz
|
||||
output ${displays.d2} enable pos 0 0 mode 1680x1050@59.954Hz
|
||||
output ${displays.d3} enable pos 3360 0 transform 0
|
||||
output ${outputs.displays.d1} enable pos 1680 0 mode 1680x1050@59.954Hz
|
||||
output ${outputs.displays.d2} enable pos 0 0 mode 1680x1050@59.954Hz
|
||||
output ${outputs.displays.d3} enable pos 3360 0 transform 0
|
||||
";;
|
||||
GPU2) swaymsg "
|
||||
output ${displays.d2} enable pos 1680 0 mode 1920x1080@60Hz
|
||||
output ${displays.d3} enable pos 0 0 transform 0
|
||||
output ${outputs.displays.d2} enable pos 1680 0 mode 1920x1080@60Hz
|
||||
output ${outputs.displays.d3} enable pos 0 0 transform 0
|
||||
";;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue