some changes in theme module
This commit is contained in:
parent
cbf852ce45
commit
774b465161
@ -6,6 +6,7 @@
|
||||
|
||||
alacritty
|
||||
cursor
|
||||
dunst
|
||||
fonts
|
||||
gtk
|
||||
i3
|
||||
|
Binary file not shown.
@ -1,42 +0,0 @@
|
||||
{ config, lib, pkgs, inputs, ... }: {
|
||||
|
||||
config.themes.base16 = with config.deviceSpecific.devInfo; {
|
||||
enable = true;
|
||||
# customScheme = {
|
||||
# enable = true;
|
||||
# path = "${inputs.base16-horizon-scheme}/horizon-dark.yaml";
|
||||
# };
|
||||
scheme = "gruvbox";
|
||||
variant = "gruvbox-dark-medium";
|
||||
extraParams = {
|
||||
# fonts = {
|
||||
# main = {
|
||||
# family = "IBM Plex Sans";
|
||||
# size = 12;
|
||||
# };
|
||||
# };
|
||||
font = "IBM Plex Sans";
|
||||
fontMono = "IBM Plex Mono";
|
||||
fontSerif = "IBM Plex Serif";
|
||||
powerlineFont = "IBM Plex Mono for Powerline";
|
||||
|
||||
fallbackFont = "Roboto";
|
||||
fallbackFontMono = "Roboto Mono";
|
||||
fallbackFontSerif = "Roboto Slab";
|
||||
|
||||
iconFont = "Font Awesome 5 Free";
|
||||
fallbackIcon = "Material Icons";
|
||||
iconTheme = "Papirus-Dark";
|
||||
iconPackage = pkgs.papirus-icon-theme;
|
||||
|
||||
normalFontSize = "12";
|
||||
headerFontSize = "14";
|
||||
smallFontSize = "11";
|
||||
microFontSize = "10";
|
||||
minimalFontSize = "8";
|
||||
|
||||
cursorPackage = pkgs.bibata-cursors;
|
||||
cursorSize = 16;
|
||||
};
|
||||
};
|
||||
}
|
@ -14,22 +14,22 @@ with config.deviceSpecific;
|
||||
settings = {
|
||||
font = {
|
||||
normal = {
|
||||
family = "${thm.powerlineFont}";
|
||||
family = "${thm.fonts.powerline.family}";
|
||||
style = "Regular";
|
||||
};
|
||||
bold = {
|
||||
family = "${thm.powerlineFont}";
|
||||
family = "${thm.fonts.powerline.family}";
|
||||
style = "Bold";
|
||||
};
|
||||
italic = {
|
||||
family = "${thm.powerlineFont}";
|
||||
family = "${thm.fonts.powerline.family}";
|
||||
style = "Italic";
|
||||
};
|
||||
bold_italic = {
|
||||
family = "${thm.powerlineFont}";
|
||||
family = "${thm.fonts.powerline.family}";
|
||||
style = "Bold Italic";
|
||||
};
|
||||
size = lib.toInt thm.smallFontSize;
|
||||
size = thm.fontSizes.small.int;
|
||||
};
|
||||
|
||||
window.padding = {
|
||||
|
@ -10,7 +10,7 @@ in
|
||||
home-manager.users.alukard = {
|
||||
programs.kitty = {
|
||||
enable = config.deviceSpecific.isLaptop;
|
||||
font.name = "${thm.powerlineFont} ${thm.smallFontSize}";
|
||||
font.name = "${thm.fonts.powerline.family} ${thm.fontSizes.small.str}";
|
||||
# keybindings = ''
|
||||
# '';
|
||||
settings = {
|
||||
|
@ -15,6 +15,7 @@ with config.deviceSpecific; {
|
||||
git-filter-repo
|
||||
glib.bin # gio
|
||||
gptfdisk
|
||||
libqalculate
|
||||
lm_sensors
|
||||
lnav
|
||||
manix
|
||||
|
@ -12,7 +12,7 @@ in
|
||||
home-manager.users.alukard = {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
font = "${thm.fontMono} ${thm.headerFontSize}";
|
||||
font = "${thm.fonts.mono.family} ${thm.fontSizes.header.str}";
|
||||
terminal = config.defaultApplications.term.cmd;
|
||||
theme = "${themeFile}";
|
||||
};
|
||||
|
@ -13,10 +13,10 @@ in
|
||||
programs.urxvt = {
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
"font" = "xft:${thm.powerlineFont}:style=Regular:size=${thm.smallFontSize}";
|
||||
"boldFont" = "xft:${thm.powerlineFont}:style=Bold:size=${thm.smallFontSize}";
|
||||
"italicFont" = "xft:${thm.powerlineFont}:style=Italic:size=${thm.smallFontSize}";
|
||||
"boldItalicfont" = "xft:${thm.powerlineFont}:style=Bold Italic:size=${thm.smallFontSize}";
|
||||
"font" = "xft:${thm.fonts.powerline.family}:style=Regular:size=${thm.fontSizes.small.str}";
|
||||
"boldFont" = "xft:${thm.fonts.powerline.family}:style=Bold:size=${thm.fontSizes.small.str}";
|
||||
"italicFont" = "xft:${thm.fonts.powerline.family}:style=Italic:size=${thm.fontSizes.small.str}";
|
||||
"boldItalicfont" = "xft:${thm.fonts.powerline.family}:style=Bold Italic:size=${thm.fontSizes.small.str}";
|
||||
|
||||
"letterSpace" = "0";
|
||||
"lineSpace" = "0";
|
||||
|
@ -1,9 +1,18 @@
|
||||
{ lib, pkgs, config, ... }: {
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = lib.mkIf (pkgs.system == "x86_64-linux") true;
|
||||
timeout = lib.mkForce 4;
|
||||
systemd-boot.enable = pkgs.system == "x86_64-linux";
|
||||
};
|
||||
|
||||
kernelParams = [ "quiet" "scsi_mod.use_blk_mq=1" "modeset" "nofb" ]
|
||||
++ lib.optionals (pkgs.system == "x86_64-linux") [
|
||||
"rd.systemd.show_status=auto"
|
||||
"rd.udev.log_priority=3"
|
||||
"pti=off"
|
||||
"spectre_v2=off"
|
||||
];
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
supportedFilesystems = [ "ntfs" ];
|
||||
|
@ -1,6 +1,5 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
with config.deviceSpecific; {
|
||||
|
||||
security.apparmor.enable = true;
|
||||
programs.firejail.enable = true;
|
||||
users.mutableUsers = false;
|
||||
@ -27,6 +26,7 @@ with config.deviceSpecific; {
|
||||
"lp"
|
||||
"dialout"
|
||||
"corectrl"
|
||||
"video"
|
||||
];
|
||||
description = "Дмитрий Холкин";
|
||||
uid = 1000;
|
||||
@ -45,23 +45,17 @@ with config.deviceSpecific; {
|
||||
'' else "")
|
||||
];
|
||||
};
|
||||
# nix.requireSignedBinaryCaches = false;
|
||||
home-manager.users.alukard = {
|
||||
systemd.user.services.polkit-agent = {
|
||||
Unit = {
|
||||
Description = "Run polkit authentication agent";
|
||||
X-RestartIfChanged = true;
|
||||
};
|
||||
Install.WantedBy = [ "sway-session.target" ];
|
||||
Service = { ExecStart = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1"; };
|
||||
};
|
||||
};
|
||||
home-manager.useUserPackages = true;
|
||||
systemd.services."user@" = { serviceConfig = { Restart = "always"; }; };
|
||||
services.getty.autologinUser = "alukard";
|
||||
|
||||
# auto-login without greeters
|
||||
# environment.loginShellInit = ''
|
||||
# [[ "$(tty)" == /dev/tty? ]] && sudo /run/current-system/sw/bin/lock this
|
||||
# [[ "$(tty)" == /dev/tty1 ]] && i3
|
||||
# '';
|
||||
# environment.systemPackages = [
|
||||
# (pkgs.writeShellScriptBin "lock" ''
|
||||
# if [[ "$1" == this ]]
|
||||
# then args="-s"
|
||||
# else args="-san"
|
||||
# fi
|
||||
# USER=alukard ${pkgs.vlock}/bin/vlock "$args"
|
||||
# '')
|
||||
# ];
|
||||
}
|
||||
|
83
profiles/themes.nix
Normal file
83
profiles/themes.nix
Normal file
@ -0,0 +1,83 @@
|
||||
{ config, lib, pkgs, inputs, ... }: {
|
||||
|
||||
config.themes.base16 = with config.deviceSpecific.devInfo; {
|
||||
enable = true;
|
||||
# customScheme = {
|
||||
# enable = true;
|
||||
# path = "${inputs.base16-horizon-scheme}/horizon-dark.yaml";
|
||||
# };
|
||||
scheme = "gruvbox";
|
||||
variant = "gruvbox-dark-medium";
|
||||
extraParams = {
|
||||
fonts = {
|
||||
main = {
|
||||
family = "IBM Plex Sans";
|
||||
size = 12;
|
||||
};
|
||||
serif = {
|
||||
family = "IBM Plex Serif";
|
||||
size = 12;
|
||||
};
|
||||
mono = {
|
||||
family = "IBM Plex Mono";
|
||||
size = 12;
|
||||
};
|
||||
powerline = {
|
||||
family = "IBM Plex Mono for Powerline";
|
||||
size = 12;
|
||||
};
|
||||
icon = {
|
||||
family = "Font Awesome 5 Free";
|
||||
size = 12;
|
||||
};
|
||||
iconFallback = {
|
||||
family = "Material Icons";
|
||||
size = 12;
|
||||
};
|
||||
};
|
||||
fontSizes = {
|
||||
normal = {
|
||||
str = "12";
|
||||
int = 12;
|
||||
float = 12.0;
|
||||
};
|
||||
header = {
|
||||
str = "14";
|
||||
int = 14;
|
||||
float = 14.0;
|
||||
};
|
||||
small = {
|
||||
str = "11";
|
||||
int = 11;
|
||||
float = 11.0;
|
||||
};
|
||||
micro = {
|
||||
str = "10";
|
||||
int = 10;
|
||||
float = 10.0;
|
||||
};
|
||||
minimal = {
|
||||
str = "8";
|
||||
int = 8;
|
||||
float = 8.0;
|
||||
};
|
||||
};
|
||||
# font = "IBM Plex Sans";
|
||||
# fontMono = "IBM Plex Mono";
|
||||
# fontSerif = "IBM Plex Serif";
|
||||
# powerlineFont = "IBM Plex Mono for Powerline";
|
||||
|
||||
# fallbackFont = "Roboto";
|
||||
# fallbackFontMono = "Roboto Mono";
|
||||
# fallbackFontSerif = "Roboto Slab";
|
||||
|
||||
# iconFont = "Font Awesome 5 Free";
|
||||
# fallbackIcon = "Material Icons";
|
||||
iconTheme = "Papirus-Dark";
|
||||
iconPackage = pkgs.papirus-icon-theme;
|
||||
|
||||
cursorPackage = pkgs.bibata-cursors;
|
||||
cursorSize = 16;
|
||||
};
|
||||
};
|
||||
}
|
@ -15,7 +15,7 @@ in {
|
||||
transparency = 10;
|
||||
frame_color = "#${thm.base05-hex}";
|
||||
separator_color = "#${thm.base05-hex}";
|
||||
font = "${thm.font} ${thm.normalFontSize}";
|
||||
font = "${thm.fonts.main.family} ${thm.fontSizes.normal.str}";
|
||||
padding = 15;
|
||||
horizontal_padding = 17;
|
||||
word_wrap = true;
|
||||
|
@ -18,9 +18,9 @@ in
|
||||
fontconfig = {
|
||||
enable = lib.mkForce true;
|
||||
defaultFonts = {
|
||||
monospace = [ "${thm.fontMono} ${thm.normalFontSize}" ];
|
||||
sansSerif = [ "${thm.font} ${thm.normalFontSize}" ];
|
||||
serif = [ "${thm.fontSerif} ${thm.normalFontSize}" ];
|
||||
monospace = [ "${thm.fonts.mono.family} ${thm.fontSizes.normal.str}" ];
|
||||
sansSerif = [ "${thm.fonts.main.family} ${thm.fontSizes.normal.str}" ];
|
||||
serif = [ "${thm.fonts.serif.family} ${thm.fontSizes.normal.str}" ];
|
||||
};
|
||||
};
|
||||
enableDefaultFonts = true;
|
||||
|
@ -16,6 +16,7 @@
|
||||
init = {
|
||||
defaultBranch = "master";
|
||||
};
|
||||
pull.rebase = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -45,8 +45,8 @@ in {
|
||||
package = pkgs.generated-gtk-theme;
|
||||
};
|
||||
font = {
|
||||
name = "${thm.font}";
|
||||
size = lib.toInt thm.normalFontSize;
|
||||
name = "${thm.fonts.main.family}";
|
||||
size = thm.fontSizes.normal.int;
|
||||
};
|
||||
};
|
||||
home.sessionVariables.XDG_DATA_DIRS = [
|
||||
|
@ -20,12 +20,10 @@ in {
|
||||
{ class = "^Telegram"; }
|
||||
];
|
||||
};
|
||||
# fonts = [ "${thm.fontMono} ${thm.microFontSize}" ];
|
||||
fonts = {
|
||||
names = [ "\"${thm.font}\"" ];
|
||||
names = [ "${thm.fonts.main.family}" ];
|
||||
style = "Regular";
|
||||
# size = thm.microFontSize;
|
||||
size = 10.0;
|
||||
size = thm.fontSizes.micro.float;
|
||||
};
|
||||
|
||||
bars = [ ];
|
||||
|
@ -6,12 +6,10 @@ in {
|
||||
home-manager.users.alukard = {
|
||||
xsession.windowManager.i3.config.bars = [{
|
||||
id = "default";
|
||||
# fonts = [ "${thm.iconFont} Solid ${thm.microFontSize}" "${thm.fallbackIcon} ${thm.microFontSize}" "${thm.powerlineFont} SemiBold ${thm.microFontSize}" ];
|
||||
fonts = {
|
||||
names = [ "${thm.powerlineFont}" "${thm.iconFont}" "${thm.fallbackIcon}" ];
|
||||
names = [ "${thm.fonts.powerline.family}" "${thm.fonts.icon.family}" "${thm.fonts.iconFallback.family}" ];
|
||||
style = "Regular";
|
||||
# size = thm.microFontSize;
|
||||
size = 10.0;
|
||||
size = thm.fontSizes.micro.float;
|
||||
};
|
||||
position = "top";
|
||||
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs";
|
||||
|
@ -5,7 +5,7 @@ let
|
||||
writeTextFile {
|
||||
inherit name;
|
||||
text = callPackage script {
|
||||
iconfont = c.lib.base16.theme.iconFont;
|
||||
iconfont = c.lib.base16.theme.fonts.icon.family;
|
||||
config = c;
|
||||
};
|
||||
executable = true;
|
||||
|
@ -106,13 +106,13 @@ with config.lib.base16.theme; {
|
||||
General = {
|
||||
ColorScheme = "Generated";
|
||||
Name = "Generated";
|
||||
fixed = "${fontMono},${smallFontSize},-1,5,50,0,0,0,0,0";
|
||||
font = "${font},${smallFontSize},-1,5,50,0,0,0,0,0";
|
||||
menuFont = "${font},${smallFontSize},-1,5,50,0,0,0,0,0";
|
||||
fixed = "${fonts.mono.family},${fontSizes.small.str},-1,5,50,0,0,0,0,0";
|
||||
font = "${fonts.main.family},${fontSizes.small.str},-1,5,50,0,0,0,0,0";
|
||||
menuFont = "${fonts.main.family},${fontSizes.small.str},-1,5,50,0,0,0,0,0";
|
||||
shadeSortColumn = true;
|
||||
smallestReadableFont =
|
||||
"${font},${minimalFontSize},-1,5,57,0,0,0,0,0,Medium";
|
||||
toolBarFont = "${font},${smallFontSize},-1,5,50,0,0,0,0,0";
|
||||
"${fonts.main.family},${fontSizes.minimal.str},-1,5,57,0,0,0,0,0,Medium";
|
||||
toolBarFont = "${fonts.main.family},${fontSizes.small.str},-1,5,50,0,0,0,0,0";
|
||||
};
|
||||
KDE = {
|
||||
DoubleClickInterval = 400;
|
||||
@ -124,7 +124,7 @@ with config.lib.base16.theme; {
|
||||
contrast = 4;
|
||||
widgetStyle = "Breeze";
|
||||
};
|
||||
Icons = { Theme = "${iconTheme}"; };
|
||||
Icons = { Theme = "${fonts.icon.family}"; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,36 +1,35 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, lib, ... }: {
|
||||
programs.light.enable = config.deviceSpecific.isLaptop;
|
||||
services.actkbd = {
|
||||
enable = config.deviceSpecific.isLaptop;
|
||||
bindings = map (x:
|
||||
x // {
|
||||
events = ["key"];
|
||||
attributes = ["exec"];
|
||||
}) ([
|
||||
{
|
||||
keys = [225];
|
||||
command = "${pkgs.light}/bin/light -A 10";
|
||||
}
|
||||
{
|
||||
keys = [224];
|
||||
command = "${pkgs.light}/bin/light -U 10";
|
||||
}
|
||||
{
|
||||
keys = [431];
|
||||
command = (toString (pkgs.writeTextFile {
|
||||
name = "dark-script";
|
||||
text = ''
|
||||
if [[ `${pkgs.light}/bin/light` -eq 0 ]]
|
||||
then
|
||||
${pkgs.light}/bin/light -I
|
||||
else
|
||||
${pkgs.light}/bin/light -O
|
||||
${pkgs.light}/bin/light -S 0
|
||||
fi'';
|
||||
executable = true;
|
||||
}));
|
||||
}
|
||||
]);
|
||||
x // {
|
||||
events = [ "key" ];
|
||||
attributes = [ "exec" ];
|
||||
}) [
|
||||
{
|
||||
keys = [ 225 ];
|
||||
command = "${pkgs.light}/bin/light -A 10";
|
||||
}
|
||||
{
|
||||
keys = [ 224 ];
|
||||
command = "${pkgs.light}/bin/light -U 10";
|
||||
}
|
||||
{
|
||||
keys = [ 431 ];
|
||||
command = (toString (pkgs.writeTextFile {
|
||||
name = "dark-script";
|
||||
text = ''
|
||||
if [[ `${pkgs.light}/bin/light` -eq 0 ]]
|
||||
then
|
||||
${pkgs.light}/bin/light -I
|
||||
else
|
||||
${pkgs.light}/bin/light -O
|
||||
${pkgs.light}/bin/light -S 0
|
||||
fi'';
|
||||
executable = true;
|
||||
}));
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -11,10 +11,9 @@
|
||||
services.udiskie.enable = true;
|
||||
news.display = "silent";
|
||||
systemd.user.startServices = true;
|
||||
services.kdeconnect.enable = true;
|
||||
home.stateVersion = "21.11";
|
||||
};
|
||||
|
||||
home-manager.users.alukard.home.stateVersion = "21.11";
|
||||
system.stateVersion = "21.11";
|
||||
|
||||
systemd.services.systemd-timesyncd.wantedBy = [ "multi-user.target" ];
|
||||
|
@ -43,8 +43,8 @@ with config.deviceSpecific; {
|
||||
show-input-cursor = false
|
||||
password-alignment = right
|
||||
[greeter-theme]
|
||||
font = "#${thm.font} Mono"
|
||||
font-size = 14pt
|
||||
font = "#${thm.fonts.mono.family}"
|
||||
font-size = ${thm.fontSizes.header.str}pt
|
||||
text-color = "#${thm.base0B-hex}"
|
||||
error-color = "#${thm.base0B-hex}"
|
||||
background-image = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user