1
Fork 0

Many changes, but among other things:

- Use base16 colors for xmonad
- No more useless fish base16 theming
- Different wallpapers for each theme
This commit is contained in:
Matei Adriel 2023-01-26 21:49:43 +01:00
parent 493954c1e3
commit 15247fa82d
No known key found for this signature in database
8 changed files with 26 additions and 29 deletions

View file

@ -1,11 +1,4 @@
{ config, pkgs, ... }:
let base16-fish = pkgs.fetchFromGitHub {
owner = "tomyun";
repo = "base16-fish";
sha256 = "142fmqm324gy3qsv48vijm5k81v6mw85ym9mmhnvyv2q2ndg5rix";
rev = "2f6dd973a9075dabccd26f1cded09508180bf5fe";
};
in
{ pkgs, ... }:
{
programs.fish = {
enable = true;
@ -18,9 +11,6 @@ in
shellAliases = {
# Print available battery
battery = "acpi";
# Rebuild nixos
rebuild = "sudo -u adrielus nixos-rebuild switch --flake ~/Projects/nixos-config/";
};
plugins = with pkgs.fishPlugins; [
@ -62,11 +52,6 @@ in
bind -e -M insert -k f10 # unbinds f10
bind -M insert -m default -k f10 'commandline -f repaint' # Exit insert mode with <f10>
end
'' +
# Theming
''
source ${config.scheme base16-fish}
''
;
'';
};
}

View file

@ -74,7 +74,7 @@ icon-default = 
format = <label-state>
label-active = %icon%
label-active-background = ${colors.base0A}
label-active-background = ${colors.base05}
label-active-foreground = ${colors.base00}
label-active-padding = 2
@ -103,9 +103,9 @@ module-margin = 2
height=4%
border-top-size = 1
border-top-color= ${colors.base0A}
border-top-color= ${colors.base05}
background = ${colors.base00}
foreground = ${colors.base0A}
foreground = ${colors.base05}
bottom = true

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View file

@ -1,3 +1,10 @@
{ config, ... }:
let
wallpapers = {
"Catppuccin Latte" = ./wallpapers/wall.png;
"Catppuccin Frappe" = ./wallpapers/nix-catppuccin.png;
};
in
{
home.file.".background-image".source = ./wallpapers/wall.png;
home.file.".background-image".source = wallpapers.${config.scheme.scheme};
}

View file

@ -40,8 +40,8 @@ in
};
# Set default theme
# scheme = lib.mkDefault "${inputs.catppuccin-base16}/base16/latte.yaml";
scheme = lib.mkDefault "${inputs.rosepine-base16}/rose-pine-dawn.yaml";
scheme = lib.mkDefault "${inputs.catppuccin-base16}/base16/frappe.yaml";
# scheme = lib.mkDefault "${inputs.rosepine-base16}/rose-pine-dawn.yaml";
# Set reasonable defaults for some settings
home = {

View file

@ -1,7 +1,8 @@
# Configuration pieces included on all (nixos) hosts
{ inputs, outputs, ... }: {
{ inputs, outputs, lib, ... }: {
imports = [
inputs.agenix.nixosModule
inputs.base16.nixosModule
# inputs.impermanence.nixosModule
./nix.nix
@ -15,6 +16,8 @@
"/etc/ssh/ssh_host_ed25519_key"
];
scheme = lib.mkDefault "${inputs.catppuccin-base16}/base16/frappe.yaml";
nixpkgs = {
# Add all overlays defined in the overlays directory
overlays = builtins.attrValues outputs.overlays ++ [

View file

@ -24,8 +24,8 @@ main =
terminal = myTerminal,
workspaces = myWorkspaces,
borderWidth = 5,
focusedBorderColor = "#d7827e",
normalBorderColor = "#d7827e",
focusedBorderColor = "#{{base05-hex}}",
normalBorderColor = "#{{base05-hex}}",
startupHook = startup,
layoutHook = avoidStruts myLayoutHook,
manageHook = manageDocks <+> manageSpawn <+> manageHook def,

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
services.xserver = {
enable = true;
@ -7,9 +7,11 @@
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
config = ./Main.hs;
};
config = builtins.readFile (config.scheme {
template = builtins.readFile ./Main.hs;
});
};
# Proper wallpaper zooming
desktopManager.wallpaper.mode = "fill";