Big update
This commit is contained in:
parent
739f3d97f2
commit
62d4de0360
10 changed files with 328 additions and 103 deletions
104
ui.nix
104
ui.nix
|
|
@ -1,4 +1,9 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
defaultTerminal = "alacritty";
|
||||
alacrittyLightTheme = "${pkgs.alacritty-theme}/night_owlish_light.toml";
|
||||
alacrittyDarkTheme = "${pkgs.alacritty-theme}/monokai_charcoal.toml";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./bar.nix
|
||||
|
|
@ -6,6 +11,11 @@
|
|||
./gui-software.nix
|
||||
];
|
||||
|
||||
|
||||
home.sessionVariables = {
|
||||
TERMINAL = defaultTerminal;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
gentium
|
||||
(nerdfonts.override { fonts = [ "CascadiaCode" "Noto" "Hack" ]; })
|
||||
|
|
@ -38,13 +48,14 @@
|
|||
serif = [ "Gentium Plus" ];
|
||||
sansSerif = [ "Inter" ];
|
||||
monospace = [ "CaskaydiaCove Nerd Font Mono" ];
|
||||
# monospace = [ "CascadiaCode" ];
|
||||
# monospace = [ "Hack Nerd Font Mono" ];
|
||||
emoji = [ "Noto Color Emoji" "OpenMoji Color" ];
|
||||
};
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font.name = "monospace";
|
||||
font.name = "CaskaydiaCove NFM Regular";
|
||||
font.size = 12;
|
||||
settings = {
|
||||
cursor_shape = "block";
|
||||
|
|
@ -69,9 +80,34 @@
|
|||
shellIntegration.mode = "no-cursor";
|
||||
extraConfig = ''
|
||||
include colors.conf
|
||||
bold_font CaskaydiaCove NFM Bold
|
||||
italic_font CaskaydiaCove NFM Italic
|
||||
bold_italic_font CaskaydiaCove NFM Bold Italic
|
||||
text_composition_strategy 1.4 4
|
||||
font_features CaskaydiaCoveNF-Italic +calt +ss01
|
||||
'';
|
||||
};
|
||||
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font = {
|
||||
size = 12.0;
|
||||
};
|
||||
|
||||
import = [
|
||||
alacrittyLightTheme # default to white
|
||||
"~/.config/alacritty/colors.toml"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
xdg = {
|
||||
mimeApps.defaultApplications."TerminalEmulator" = "Alacritty.desktop";
|
||||
};
|
||||
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
events = [
|
||||
|
|
@ -104,20 +140,6 @@
|
|||
programs.swaylock = {
|
||||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
# --screenshots \
|
||||
# --clock \
|
||||
# --indicator \
|
||||
# --indicator-radius 100 \
|
||||
# --indicator-thickness 7 \
|
||||
# --effect-blur 7x5 \
|
||||
# --effect-vignette 0.5:0.5 \
|
||||
# --ring-color bb00cc \
|
||||
# --key-hl-color 880033 \
|
||||
# --line-color 00000000 \
|
||||
# --inside-color 00000088 \
|
||||
# --separator-color 00000000 \
|
||||
# --grace 2 \
|
||||
# --fade-in 0.2
|
||||
settings = {
|
||||
screenshots = true;
|
||||
# clock = true;
|
||||
|
|
@ -202,6 +224,58 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.darkman = {
|
||||
lightModeScripts = {
|
||||
gtk-theme = ''
|
||||
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/interface/color-scheme "'prefer-light'"
|
||||
'';
|
||||
set-background = ''
|
||||
rm -f ~/.local/share/bg/*
|
||||
ln -rs ~/.local/share/bg-light.* ~/.local/share/bg/
|
||||
${pkgs.hyprland}/bin/hyprctl reload
|
||||
'';
|
||||
set-rofi-colors = ''
|
||||
rm -f ~/.config/rofi/colors-current.rasi
|
||||
ln -rs ~/.config/rofi/colors-light.rasi ~/.config/rofi/colors-current.rasi
|
||||
'';
|
||||
set-kitty-colors = ''
|
||||
rm -f ~/.config/kitty/colors.conf
|
||||
ln -rs ~/.config/kitty/light.conf ~/.config/kitty/colors.conf
|
||||
kill -SIGUSR1 $(pgrep kitty)
|
||||
'';
|
||||
set-alacritty-colors = ''
|
||||
rm -f ~/.config/alacritty/colors.toml
|
||||
ln -s ${alacrittyLightTheme} ~/.config/alacritty/colors.toml
|
||||
'';
|
||||
notify = "${pkgs.libnotify}/bin/notify-send \"Light mode\"";
|
||||
};
|
||||
|
||||
darkModeScripts = {
|
||||
gtk-theme = ''
|
||||
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
|
||||
'';
|
||||
set-background = ''
|
||||
rm -f ~/.local/share/bg/*
|
||||
ln -rs ~/.local/share/bg-dark.* ~/.local/share/bg/
|
||||
${pkgs.hyprland}/bin/hyprctl reload
|
||||
'';
|
||||
set-rofi-colors = ''
|
||||
rm -f ~/.config/rofi/colors-current.rasi
|
||||
ln -rs ~/.config/rofi/colors-dark.rasi ~/.config/rofi/colors-current.rasi
|
||||
'';
|
||||
set-kitty-colors = ''
|
||||
rm -f ~/.config/kitty/colors.conf
|
||||
ln -rs ~/.config/kitty/dark.conf ~/.config/kitty/colors.conf
|
||||
kill -SIGUSR1 $(pgrep kitty)
|
||||
'';
|
||||
set-alacritty-colors = ''
|
||||
rm -f ~/.config/alacritty/colors.toml
|
||||
ln -s ${alacrittyDarkTheme} ~/.config/alacritty/colors.toml
|
||||
'';
|
||||
notify = "${pkgs.libnotify}/bin/notify-send \"Dark mode\"";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services = {
|
||||
battery-notify = {
|
||||
Unit = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue