forked from Shinonome/omarchy-nix
Refactor for wallpers, keybinds, add weeb tokyo-light theme
This commit is contained in:
@@ -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"
|
||||||
@@ -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 |
@@ -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}";
|
||||||
|
}
|
||||||
@@ -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)
|
||||||
@@ -50,6 +50,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: Add an actual nvim config
|
# TODO: Add an actual nvim config
|
||||||
programs.neovim.enable = true;
|
programs.neovim.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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,41 +12,42 @@ 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 =
|
||||||
"GDK_SCALE,${toString cfg.scale}"
|
(lib.optionals hasNvidiaDrivers nvidiaEnv)
|
||||||
|
++ [
|
||||||
# Cursor size
|
"GDK_SCALE,${toString cfg.scale}"
|
||||||
"XCURSOR_SIZE,24"
|
|
||||||
"HYPRCURSOR_SIZE,24"
|
|
||||||
|
|
||||||
# Cursor theme
|
# Cursor size
|
||||||
"XCURSOR_THEME,Bibata-Modern-Classic"
|
"XCURSOR_SIZE,24"
|
||||||
"HYPRCURSOR_THEME,Bibata-Modern-Classic"
|
"HYPRCURSOR_SIZE,24"
|
||||||
|
|
||||||
# Force all apps to use Wayland
|
# Cursor theme
|
||||||
"GDK_BACKEND,wayland"
|
"XCURSOR_THEME,Bibata-Modern-Classic"
|
||||||
"QT_QPA_PLATFORM,wayland"
|
"HYPRCURSOR_THEME,Bibata-Modern-Classic"
|
||||||
"QT_STYLE_OVERRIDE,kvantum"
|
|
||||||
"SDL_VIDEODRIVER,wayland"
|
|
||||||
"MOZ_ENABLE_WAYLAND,1"
|
|
||||||
"ELECTRON_OZONE_PLATFORM_HINT,wayland"
|
|
||||||
"OZONE_PLATFORM,wayland"
|
|
||||||
|
|
||||||
# Make Chromium use XCompose and all Wayland
|
# Force all apps to use Wayland
|
||||||
"CHROMIUM_FLAGS,\"--enable-features=UseOzonePlatform --ozone-platform=wayland --gtk-version=4\""
|
"GDK_BACKEND,wayland"
|
||||||
|
"QT_QPA_PLATFORM,wayland"
|
||||||
|
"QT_STYLE_OVERRIDE,kvantum"
|
||||||
|
"SDL_VIDEODRIVER,wayland"
|
||||||
|
"MOZ_ENABLE_WAYLAND,1"
|
||||||
|
"ELECTRON_OZONE_PLATFORM_HINT,wayland"
|
||||||
|
"OZONE_PLATFORM,wayland"
|
||||||
|
|
||||||
# Make .desktop files available for wofi
|
# Make Chromium use XCompose and all Wayland
|
||||||
"XDG_DATA_DIRS,$XDG_DATA_DIRS:$HOME/.nix-profile/share:/nix/var/nix/profiles/default/share"
|
"CHROMIUM_FLAGS,\"--enable-features=UseOzonePlatform --ozone-platform=wayland --gtk-version=4\""
|
||||||
|
|
||||||
# Use XCompose file
|
# Make .desktop files available for wofi
|
||||||
"XCOMPOSEFILE,~/.XCompose"
|
"XDG_DATA_DIRS,$XDG_DATA_DIRS:$HOME/.nix-profile/share:/nix/var/nix/profiles/default/share"
|
||||||
"EDITOR,nvim"
|
|
||||||
# "DOCKER_HOST,unix://$XDG_RUNTIME_DIR/podman/podman.sock"
|
# Use XCompose file
|
||||||
];
|
"XCOMPOSEFILE,~/.XCompose"
|
||||||
|
"EDITOR,nvim"
|
||||||
|
# "DOCKER_HOST,unix://$XDG_RUNTIME_DIR/podman/podman.sock"
|
||||||
|
];
|
||||||
|
|
||||||
xwayland = {
|
xwayland = {
|
||||||
force_zero_scaling = true;
|
force_zero_scaling = true;
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
layerrule = [
|
layerrule = [
|
||||||
# Proper background blur for wofi
|
# Proper background blur for wofi
|
||||||
"blur,wofi"
|
"blur,wofi"
|
||||||
|
"blur,waybar"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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";
|
||||||
@@ -60,7 +60,7 @@ in {
|
|||||||
text = "\$FPRINTPROMPT";
|
text = "\$FPRINTPROMPT";
|
||||||
text_align = "center";
|
text_align = "center";
|
||||||
color = "rgb(211, 198, 170)";
|
color = "rgb(211, 198, 170)";
|
||||||
font_size = 24;
|
font_size = 24;
|
||||||
font_family = "CaskaydiaMono Nerd Font";
|
font_family = "CaskaydiaMono Nerd Font";
|
||||||
position = "0, -100";
|
position = "0, -100";
|
||||||
halign = "center";
|
halign = "center";
|
||||||
|
|||||||
@@ -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" = {
|
||||||
|
|||||||
@@ -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};
|
||||||
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user