Refactor for wallpers, keybinds, add weeb tokyo-light theme

This commit is contained in:
Henry Sipp
2025-07-22 21:08:27 -05:00
parent e2d116c28a
commit 1fed2b5d59
14 changed files with 84 additions and 69 deletions
+1 -1
View File
@@ -37,4 +37,4 @@ grep -h '^[[:space:]]*bind' "$USER_HYPRLAND_CONF" |
printf "%-35s → %s\n", key_combo, action; printf "%-35s → %s\n", key_combo, action;
} }
}' | }' |
flock --nonblock /tmp/.wofi.lock -c "wofi -dmenu -i --width 30% --height 40% -p 'Hyprland Keybindings' -O alphabetical" flock --nonblock /tmp/.wofi.lock -c "wofi -dmenu -i --width 50% --height 40% -p 'Hyprland Keybindings' -O alphabetical"
+1
View File
@@ -11,6 +11,7 @@ lib: {
theme = lib.mkOption { theme = lib.mkOption {
type = lib.types.enum [ type = lib.types.enum [
"tokyo-night" "tokyo-night"
"tokyo-night-light"
"kanagawa" "kanagawa"
"everforest" "everforest"
"catppuccin" "catppuccin"
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

+30
View File
@@ -0,0 +1,30 @@
config: let
cfg = config.omarchy;
wallpapers = {
"tokyo-night" = [
"1-Pawel-Czerwinski-Abstract-Purple-Blue.jpg"
];
"tokyo-night-light" = [
"tokyo-night-light-1.jpg"
];
"kanagawa" = [
"kanagawa-1.png"
];
"everforest" = [
"1-everforest.jpg"
];
"nord" = [
"nord-1.png"
];
"gruvbox" = [
"gruvbox-1.jpg"
];
"gruvbox-light" = [
"gruvbox-1.jpg"
];
};
selected_wallpaper = builtins.elemAt (wallpapers.${cfg.theme}) 0;
in {
wallpaper_path = "~/Pictures/Wallpapers/${selected_wallpaper}";
}
+1 -1
View File
@@ -20,7 +20,7 @@ in {
(import ./mako.nix) (import ./mako.nix)
(import ./starship.nix) (import ./starship.nix)
(import ./vscode.nix) (import ./vscode.nix)
(import ./waybar.nix) (import ./waybar.nix inputs)
(import ./wofi.nix) (import ./wofi.nix)
(import ./zoxide.nix) (import ./zoxide.nix)
(import ./zsh.nix) (import ./zsh.nix)
-1
View File
@@ -9,5 +9,4 @@ inputs: {
package = inputs.hyprland.packages.${pkgs.system}.hyprland; package = inputs.hyprland.packages.${pkgs.system}.hyprland;
}; };
services.hyprpolkitagent.enable = true; services.hyprpolkitagent.enable = true;
} }
@@ -23,7 +23,6 @@ in {
"SUPER SHIFT CTRL, ESCAPE, exec, systemctl poweroff" "SUPER SHIFT CTRL, ESCAPE, exec, systemctl poweroff"
"SUPER, K, exec, ~/.local/share/omarchy/bin/omarchy-show-keybindings" "SUPER, K, exec, ~/.local/share/omarchy/bin/omarchy-show-keybindings"
# Control tiling # Control tiling
"SUPER, J, togglesplit, # dwindle" "SUPER, J, togglesplit, # dwindle"
"SUPER, P, pseudo, # dwindle" "SUPER, P, pseudo, # dwindle"
+5 -5
View File
@@ -4,8 +4,7 @@
pkgs, pkgs,
osConfig ? {}, osConfig ? {},
... ...
}: }: let
let
cfg = config.omarchy; cfg = config.omarchy;
hasNvidiaDrivers = builtins.elem "nvidia" osConfig.services.xserver.videoDrivers; hasNvidiaDrivers = builtins.elem "nvidia" osConfig.services.xserver.videoDrivers;
nvidiaEnv = [ nvidiaEnv = [
@@ -13,11 +12,12 @@ let
"LIBVA_DRIVER_NAME,nvidia" "LIBVA_DRIVER_NAME,nvidia"
"__GLX_VENDOR_LIBRARY_NAME,nvidia" "__GLX_VENDOR_LIBRARY_NAME,nvidia"
]; ];
in in {
{
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
# Environment variables # Environment variables
env = (lib.optionals hasNvidiaDrivers nvidiaEnv) ++ [ env =
(lib.optionals hasNvidiaDrivers nvidiaEnv)
++ [
"GDK_SCALE,${toString cfg.scale}" "GDK_SCALE,${toString cfg.scale}"
# Cursor size # Cursor size
@@ -40,6 +40,7 @@
layerrule = [ layerrule = [
# Proper background blur for wofi # Proper background blur for wofi
"blur,wofi" "blur,wofi"
"blur,waybar"
]; ];
}; };
} }
+4 -4
View File
@@ -6,6 +6,7 @@ inputs: {
}: let }: let
palette = config.colorScheme.palette; palette = config.colorScheme.palette;
convert = inputs.nix-colors.lib.conversions.hexToRGBString; convert = inputs.nix-colors.lib.conversions.hexToRGBString;
selected_wallpaper_path = (import ../../lib/selected-wallpaper.nix config).wallpaper_path;
backgroundRgb = "rgba(${convert ", " palette.base00}, 0.8)"; backgroundRgb = "rgba(${convert ", " palette.base00}, 0.8)";
surfaceRgb = "rgb(${convert ", " palette.base02})"; surfaceRgb = "rgb(${convert ", " palette.base02})";
@@ -24,9 +25,9 @@ in {
}; };
background = { background = {
monitor = ""; monitor = "";
path = "screenshot"; path = selected_wallpaper_path;
blur_passes = 3; # blur_passes = 3;
brightness = 0.5; # brightness = 0.5;
}; };
input-field = { input-field = {
@@ -45,7 +46,6 @@ in {
font_color = foregroundRgb; font_color = foregroundRgb;
placeholder_color = foregroundMutedRgb; placeholder_color = foregroundMutedRgb;
# placeholder_text = "Enter Password";
placeholder_text = "Enter Password 󰈷"; placeholder_text = "Enter Password 󰈷";
check_color = "rgba(131, 192, 146, 1.0)"; check_color = "rgba(131, 192, 146, 1.0)";
fail_text = "Wrong"; fail_text = "Wrong";
+1 -24
View File
@@ -3,30 +3,7 @@
pkgs, pkgs,
... ...
}: let }: let
cfg = config.omarchy; selected_wallpaper_path = (import ../../lib/selected-wallpaper.nix config).wallpaper_path;
wallpapers = {
"tokyo-night" = [
"1-Pawel-Czerwinski-Abstract-Purple-Blue.jpg"
];
"kanagawa" = [
"kanagawa-1.png"
];
"everforest" = [
"1-everforest.jpg"
];
"nord" = [
"nord-1.png"
];
"gruvbox" = [
"gruvbox-1.jpg"
];
"gruvbox-light" = [
"gruvbox-1.jpg"
];
};
selected_wallpaper = builtins.elemAt (wallpapers.${cfg.theme}) 0;
selected_wallpaper_path = "~/Pictures/Wallpapers/${selected_wallpaper}";
in { in {
home.file = { home.file = {
"Pictures/Wallpapers" = { "Pictures/Wallpapers" = {
+9 -3
View File
@@ -1,8 +1,13 @@
{ inputs: {
config, config,
pkgs, pkgs,
... ...
}: { }:
let
palette = config.colorScheme.palette;
convert = inputs.nix-colors.lib.conversions.hexToRGBString;
backgroundRgb = "rgba(${convert ", " palette.base00}, 0.25)";
in {
home.file = { home.file = {
".config/waybar/" = { ".config/waybar/" = {
source = ../../config/waybar; source = ../../config/waybar;
@@ -12,7 +17,8 @@
text = '' text = ''
* { * {
color: #${config.colorScheme.palette.base05}; color: #${config.colorScheme.palette.base05};
background-color: #${config.colorScheme.palette.base00}; background-color: ${backgroundRgb};
} }
''; '';
}; };
-2
View File
@@ -3,12 +3,10 @@ inputs: {
pkgs, pkgs,
... ...
}: { }: {
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
# package = inputs.hyprland.packages.${pkgs.system}.hyprland; # package = inputs.hyprland.packages.${pkgs.system}.hyprland;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
}; };
} }
+4
View File
@@ -3,6 +3,10 @@
base16-theme = "tokyo-night-dark"; base16-theme = "tokyo-night-dark";
vscode-theme = "Tokyo Night"; vscode-theme = "Tokyo Night";
}; };
"tokyo-night-light" = {
base16-theme = "tokyo-night-light";
vscode-theme = "Tokyo Night Light";
};
"catppuccin-macchiato" = { "catppuccin-macchiato" = {
vscode-theme = "Catppuccin Macchiato"; vscode-theme = "Catppuccin Macchiato";