add stylix

This commit is contained in:
alisceon 2026-01-07 19:19:47 +01:00
parent 42233599d5
commit 56028e3345
4 changed files with 392 additions and 347 deletions

View file

@ -6,7 +6,7 @@
term = "${pkgs.kitty}/bin/kitty";
dmenu = "${pkgs.rofi}/bin/rofi -show drun";
notify = "${pkgs.libnotify}/bin/notify-send";
nag = "${pkgs.sway}/bin/swaynag --edge bottom --font '${style_font} ${style_font_sz}'";
nag = "${pkgs.sway}/bin/swaynag --edge bottom";
# keybinds
key_mod = "Mod4";
@ -16,64 +16,6 @@
key_up = "Up";
key_down = "Down";
# style
style_font = "Inconsolata";
style_font_sz = "12";
style_font_bold = "${style_font}-Bold";
color_blue_1 = "#99c1f1";
color_blue_2 = "#62a0ea";
color_blue_3 = "#3584e4";
color_blue_4 = "#1c71d8";
color_blue_5 = "#1a5fb4";
color_green_1 = "#8ff0a4";
color_green_2 = "#57e389";
color_green_3 = "#33d17a";
color_green_4 = "#2ec27e";
color_green_5 = "#26a269";
color_yellow_1 = "#f9f06b";
color_yellow_2 = "#f8e45c";
color_yellow_3 = "#f6d32d";
color_yellow_4 = "#f5c211";
color_yellow_5 = "#e5a50a";
color_orange_1 = "#ffbe6f";
color_orange_2 = "#ffa348";
color_orange_3 = "#ff7800";
color_orange_4 = "#e66100";
color_orange_5 = "#c64600";
color_red_1 = "#f66151";
color_red_2 = "#ed333b";
color_red_3 = "#e01b24";
color_red_4 = "#c01c28";
color_red_5 = "#a51d2d";
color_purple_1 = "#dc8add";
color_purple_2 = "#c061cb";
color_purple_3 = "#9141ac";
color_purple_4 = "#813d9c";
color_purple_5 = "#613583";
color_brown_1 = "#cdab8f";
color_brown_2 = "#b5835a";
color_brown_3 = "#986a44";
color_brown_4 = "#865e3c";
color_brown_5 = "#63452c";
color_light_1 = "#ffffff";
color_light_2 = "#f6f5f4";
color_light_3 = "#d8d8d8";
color_light_4 = "#c0c0c0";
color_light_5 = "#9b9b9b";
color_dark_1 = "#757575";
color_dark_2 = "#666666";
color_dark_3 = "#494949";
color_dark_4 = "#333333";
color_dark_5 = "#000000";
color_f_bg = color_dark_3;
color_f_text = color_light_1;
color_uf_bg = color_dark_4;
color_uf_text = color_light_4;
color_alert_bg = color_red_5;
color_alert_text = color_light_1;
color_inv_bg = color_light_4;
color_inv_text = color_dark_5;
# other
display = status: "${swaymsg} 'output * power ${status}'";
hostnameOutput =
@ -173,10 +115,6 @@
bars = [
{ command = "${pkgs.waybar}/bin/waybar"; }
];
fonts = {
names = ["${style_font}"];
size = style_font_sz;
};
input = {
"type:touchpad" = {
dwt = "enabled";
@ -286,45 +224,7 @@
commands = [
{ criteria = { all = true; }; command = "inhibit_idle fullscreen"; }
];
};
colors = {
background = color_dark_5;
focused = {
border = color_f_bg;
background = color_f_bg;
text = color_light_1;
indicator = color_f_bg;
childBorder = color_f_bg;
};
focusedInactive = {
border = color_f_bg;
background = color_f_bg;
text = color_light_1;
indicator = color_f_bg;
childBorder = color_f_bg;
};
unfocused = {
border = color_uf_bg;
background = color_uf_bg;
text = color_uf_text;
indicator = color_uf_bg;
childBorder = color_uf_bg;
};
urgent = {
border = color_alert_bg;
background = color_alert_bg;
text = color_alert_text;
indicator = color_alert_bg;
childBorder = color_alert_bg;
};
placeholder = {
border = color_dark_3;
background = color_dark_3;
text = color_light_4;
indicator = color_dark_3;
childBorder = color_dark_3;
};
}; # end colors
}; # end window
assigns = {
"1" = [{app_id = "firefox";}];
"2" = [{class = "steam";}];
@ -346,11 +246,8 @@
settings = {
actions = true;
anchor = "top-center";
background-color = color_f_bg;
border-color = color_f_bg;
border-radius = 0;
default-timeout = 10000;
font = "${style_font} ${style_font_sz}";
height = 100;
width = 600;
icons = true;
@ -372,78 +269,6 @@
programs = {
rofi = {
enable = true;
font = "${style_font} ${style_font_sz}";
theme = let
inherit (config.lib.formats.rasi) mkLiteral;
in {
"*" = {
bg = mkLiteral color_uf_bg;
fg = mkLiteral color_f_text;
ac = mkLiteral color_f_bg;
background-color = mkLiteral "transparent";
};
"#window" = {
background-color = mkLiteral "@bg";
location = mkLiteral "center";
width = mkLiteral "30%";
};
"#prompt" = {
text-color = mkLiteral "@fg";
};
"#textbox-prompt-colon" = {
text-color = mkLiteral "@fg";
};
"#entry" = {
text-color = mkLiteral "@fg";
blink = mkLiteral "true";
};
"#inputbar" = {
children = mkLiteral "[ prompt, entry ]";
text-color = mkLiteral "@fg";
padding = mkLiteral "5px";
};
"#listview" = {
columns = mkLiteral "1";
lines = mkLiteral "6";
cycle = mkLiteral "true";
dynamic = mkLiteral "true";
};
"#mainbox" = {
border = mkLiteral "3px";
border-color = mkLiteral "@ac";
children = mkLiteral "[ inputbar, listview ]";
padding = mkLiteral "10px";
};
"#element" = {
text-color = mkLiteral "@fg";
padding = mkLiteral "5px";
};
"#element-icon" = {
text-color = mkLiteral "@fg";
size = mkLiteral "32px";
};
"#element-text" = {
text-color = mkLiteral "@fg";
padding = mkLiteral "5px";
};
"#element selected" = {
border = mkLiteral "3px";
border-color = mkLiteral "@ac";
text-color = mkLiteral "@fg";
background-color = mkLiteral "@ac";
};
}; # end theme
}; # end rofi
waybar = {
enable = true;
@ -521,177 +346,20 @@
};
}; # end mainbar
}; # end settings
style = ''
* {
font-family: ${style_font_bold};
font-size: ${style_font_sz}pt;
}
window#waybar {
color: ${color_f_text};
background-color: ${color_uf_bg};
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.2;
}
/*
window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: ${color_purple_1};
}
*/
button {
box-shadow: inset 0 -8px transparent;
border: none;
border-radius: 0;
}
button:hover {
color: ${color_f_text};
background: ${color_f_bg};
}
#workspaces button {
color: ${color_uf_text};
background-color: ${color_uf_bg};
}
#workspaces button:hover {
color: ${color_f_text};
background: ${color_f_bg};
}
#workspaces button.focused {
color: ${color_inv_text};
background-color: ${color_inv_bg};
}
#workspaces button.urgent {
color: ${color_alert_text};
background-color: ${color_alert_bg};
}
#battery,
#clock,
#network,
#pulseaudio,
#tray,
#window,
#workspaces {
margin: 0 2px;
}
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
#battery {
color: ${color_f_text};
background-color: transparent;
}
#battery.critical.discharging {
animation: blink 1s infinite;
color: ${color_red_2};
}
#battery.warning.discharging {
animation: blink 1s infinite;
color: ${color_orange_2};
}
#battery.good {
animation: none;
color: ${color_f_text};
}
#battery.full.charging {
color: ${color_green_2};
}
#battery.over.charging {
color: ${color_green_2};
}
#clock {
color: ${color_f_text};
background-color: transparent;
}
label:focus {
color: ${color_f_text};
background-color: transparent;
}
#network {
color: ${color_f_text};
background-color: transparent;
}
#network.disconnected {
color: ${color_f_text};
background-color: transparent;
}
#pulseaudio {
color: ${color_f_text};
background-color: transparent;
}
#pulseaudio.muted {
color: ${color_f_text};
background-color: transparent;
}
#tray {
background-color: transparent;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: transparent;
}
''; # end style
}; # end waybar
swaylock = {
enable = true;
settings = {
color = color_uf_bg;
font = style_font;
font-size = style_font_sz;
ignore-empty-password = true;
indicator-caps-lock = true;
indicator-radius = 50;
indicator-thickness = 10;
}; # end settings
}; # end swaylock
kitty = {
enable = true;
font = {
name = style_font;
size = lib.toInt style_font_sz;
};
settings = {
confirm_os_window_close = 0;
enable_audio_bell = false;
window_padding_width = 2;
foreground = color_f_text;
background = color_uf_bg;
};
}; # end kitty
}; # end programs
@ -700,14 +368,6 @@
gtk2.enable = true;
gtk3.enable = true;
gtk4.enable = true;
colorScheme = "dark";
theme.name = "Adwaita-Dark";
cursorTheme.name = "Adwaita-Dark";
font.package = pkgs.inconsolata;
font.name = "Inconsolata";
font.size = 14;
iconTheme.name = "Adwaita-Dark";
iconTheme.package = pkgs.adwaita-icon-theme;
};
xdg.configFile."libinput-gestures.conf".text = ''
@ -759,7 +419,6 @@
"application/x-web-app-manifest+json" = [ "${pkgs.firefox}/share/applications/firefox.desktop" ];
"application/xml-dtd" = [ "${pkgs.firefox}/share/applications/firefox.desktop" ];
# Images
"image/png" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];
"image/jpeg" = [ "${pkgs.swayimg}/share/applications/swayimg.desktop" ];