add: home-manager,hyprland,kitten and other extras

This commit is contained in:
elwrcl committed 2026-03-30 23:51:17 +03:00
commit 3615a7b307
56 files changed
+1804

No files matched your search

+50
View File
@@ -0,0 +1,50 @@
{ config, pkgs, inputs, system, ... }:
{
imports = [ ./hyprland.nix ];
home.username = "elars";
home.homeDirectory = "/home/elars";
home.stateVersion = "25.05";
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initExtra = builtins.readFile /home/elars/.copdots/zsh/.zshrc;
};
programs.kitty = {
enable = true;
settings = {
shell = "zsh";
confirm_os_window_close = 0;
background_opacity = "0.8";
cursor_trail = 3;
};
};
xdg.configFile = {
"fastfetch".source = /home/elars/.copdots/fastfetch;
"fish/functions".source = /home/elars/.copdots/fish/functions;
"fish/completions".source = /home/elars/.copdots/fish/completions;
"fish/conf.d".source = /home/elars/.copdots/fish/conf.d;
};
# Packs
home.packages = with pkgs; [
eza bat fzf fd micro fastfetch starship
vulkan-tools libva-utils mesa-demos intel-gpu-tools clinfo
nerd-fonts.symbols-only
inputs.apple-fonts.packages.${system}.sf-pro
inputs.apple-fonts.packages.${system}.sf-mono
];
programs.starship.enable = true;
programs.fzf.enable = true;
home.file.".zshrc".source = /home/elars/.copdots/zsh/.zshrc;
programs.home-manager.enable = true;
fonts.fontconfig.enable = true;
}
+11
View File
@@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
imports = [
./hyprland/env.nix
./hyprland/execs.nix
./hyprland/general.nix
./hyprland/rules.nix
./hyprland/keybinds.nix
];
}
+17
View File
@@ -0,0 +1,17 @@
{ ... }:
{
wayland.windowManager.hyprland.settings = {
env = [
"XCURSOR_SIZE,24"
"XCURSOR_THEME,Bibata-Modern-Classic"
"XDG_SESSION_TYPE,wayland"
"XDG_CURRENT_DESKTOP,Hyprland"
"XDG_SESSION_DESKTOP,Hyprland"
"GDK_BACKEND,wayland,x11"
"QT_QPA_PLATFORM,wayland;xcb"
"ELECTRON_OZONE_PLATFORM_HINT,auto"
"TERMINAL,kitty"
];
};
}
+14
View File
@@ -0,0 +1,14 @@
{ ... }:
{
wayland.windowManager.hyprland.settings = {
exec-once = [
"noctalia-shell"
"easyeffects --hide-window --service-mode"
"gnome-keyring-daemon --start --components=secrets"
"hyprctl setcursor Bibata-Modern-Classic 24"
"wl-paste --type text --watch cliphist store"
"wl-paste --type image --watch cliphist store"
];
};
}
+96
View File
@@ -0,0 +1,96 @@
{ ... }:
{
wayland.windowManager.hyprland.settings = {
monitor = ",preferred,auto,1";
general = {
gaps_in = 4;
gaps_out = 5;
border_size = 1;
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
"col.inactive_border" = "rgba(31313600)";
resize_on_border = true;
allow_tearing = true;
layout = "dwindle";
};
dwindle = {
preserve_split = true;
smart_split = false;
smart_resizing = false;
};
decoration = {
rounding = 18;
rounding_power = 2;
active_opacity = 1.0;
inactive_opacity = 1.0;
dim_inactive = true;
dim_strength = 0.05;
blur = { enabled = false; };
shadow = { enabled = false; };
};
input = {
kb_layout = "tr";
numlock_by_default = true;
repeat_delay = 250;
repeat_rate = 35;
sensitivity = 0.0;
accel_profile = "flat";
follow_mouse = 1;
force_no_accel = true;
touchpad = {
natural_scroll = true;
disable_while_typing = true;
clickfinger_behavior = true;
scroll_factor = 0.8;
};
};
gestures = {
workspace_swipe_distance = 700;
workspace_swipe_cancel_ratio = 0.2;
workspace_swipe_min_speed_to_force = 5;
workspace_swipe_direction_lock = true;
workspace_swipe_create_new = true;
};
misc = {
disable_hyprland_logo = true;
disable_splash_rendering = true;
vfr = 1;
mouse_move_enables_dpms = true;
key_press_enables_dpms = true;
animate_manual_resizes = false;
focus_on_activate = false;
};
bezier = [
"expressiveDefaultSpatial, 0.38, 1.21, 0.22, 1.00"
"emphasizedDecel, 0.05, 0.7, 0.1, 1"
"emphasizedAccel, 0.3, 0, 0.8, 0.15"
"standardDecel, 0, 0, 0, 1"
"menu_decel, 0.1, 1, 0, 1"
"menu_accel, 0.52, 0.03, 0.72, 0.08"
"stall, 1, -0.1, 0.7, 0.85"
];
animation = [
"windowsIn, 1, 3, emphasizedDecel, popin 80%"
"windowsOut, 1, 2, emphasizedDecel, popin 90%"
"windowsMove,1, 3, emphasizedDecel, slide"
"fadeIn, 1, 3, emphasizedDecel"
"fadeOut, 1, 2, emphasizedDecel"
"border, 1, 10, emphasizedDecel"
"layersIn, 1, 2.7, emphasizedDecel, popin 93%"
"layersOut, 1, 2.4, menu_accel, popin 94%"
"fadeLayersIn, 1, 0.5, menu_decel"
"fadeLayersOut, 1, 2.7, stall"
"workspaces, 1, 7, menu_decel, slide"
"specialWorkspaceIn, 1, 2.8, emphasizedDecel, slidevert"
"specialWorkspaceOut, 1, 1.2, emphasizedAccel, slidevert"
];
};
}
+103
View File
@@ -0,0 +1,103 @@
{ ... }:
{
wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER";
bindr = [
"$mainMod, SUPER_L, exec, pkill fuzzel || fuzzel"
];
bind = [
# launchers
"$mainMod, Return, exec, kitty"
"$mainMod, W, exec, zen"
"$mainMod, C, exec, zed"
"$mainMod, E, exec, dolphin"
"$mainMod, R, exec, pkill fuzzel || fuzzel"
# window management
"$mainMod, Q, killactive"
"$mainMod ALT, SPACE, togglefloating"
"$mainMod, F, fullscreen, 0"
"$mainMod, D, fullscreen, 1"
"$mainMod, P, pin"
# lock
"$mainMod, L, exec, loginctl lock-session"
"$mainMod SHIFT, L, exec, systemctl suspend"
# focus
"$mainMod, left, movefocus, l"
"$mainMod, right, movefocus, r"
"$mainMod, up, movefocus, u"
"$mainMod, down, movefocus, d"
# windows drag
"$mainMod SHIFT, left, movewindow, l"
"$mainMod SHIFT, right, movewindow, r"
"$mainMod SHIFT, up, movewindow, u"
"$mainMod SHIFT, down, movewindow, d"
# workspaces
"$mainMod, 1, workspace, 1"
"$mainMod, 2, workspace, 2"
"$mainMod, 3, workspace, 3"
"$mainMod, 4, workspace, 4"
"$mainMod, 5, workspace, 5"
"$mainMod, 6, workspace, 6"
"$mainMod, 7, workspace, 7"
"$mainMod, 8, workspace, 8"
"$mainMod, 9, workspace, 9"
"$mainMod, 0, workspace, 10"
# moveworkspace
"$mainMod SHIFT, 1, movetoworkspace, 1"
"$mainMod SHIFT, 2, movetoworkspace, 2"
"$mainMod SHIFT, 3, movetoworkspace, 3"
"$mainMod SHIFT, 4, movetoworkspace, 4"
"$mainMod SHIFT, 5, movetoworkspace, 5"
"$mainMod SHIFT, 6, movetoworkspace, 6"
"$mainMod SHIFT, 7, movetoworkspace, 7"
"$mainMod SHIFT, 8, movetoworkspace, 8"
"$mainMod SHIFT, 9, movetoworkspace, 9"
"$mainMod SHIFT, 0, movetoworkspace, 10"
# s-workspace
"$mainMod, S, togglespecialworkspace"
"$mainMod ALT, S, movetoworkspacesilent, special"
# scrolling
"$mainMod, mouse_up, workspace, +1"
"$mainMod, mouse_down, workspace, -1"
# screenshot
"Super, Print, exec, grim - | wl-copy"
"Super SHIFT, S, exec, grim -g \"$(slurp)\" - | wl-copy"
];
# scaling w-mouse
bindm = [
"$mainMod, mouse:272, movewindow"
"$mainMod, mouse:273, resizewindow"
];
# volume
bindel = [
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
", XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+"
", XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-"
];
# other
bindl = [
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle"
", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous"
", XF86AudioPlay, exec, playerctl play-pause"
", XF86AudioPause, exec, playerctl play-pause"
];
};
}
+21
View File
@@ -0,0 +1,21 @@
{ ... }:
{
wayland.windowManager.hyprland.settings = {
windowrule = [
"match:title ^(Open File)(.*)$, float on"
"match:title ^(Open File)(.*)$, center on"
"match:title ^(Save As)(.*)$, float on"
"match:title ^(Save As)(.*)$, center on"
"match:title ^(File Upload)(.*)$, float on"
"match:title ^(File Upload)(.*)$, center on"
"match:class ^(pavucontrol)$, float on"
"match:class ^(pavucontrol)$, center on"
"match:class ^(pavucontrol)$, size 45% 45%"
"match:title ^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$, float on"
"match:title ^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$, pin on"
"match:title ^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$, keep_aspect_ratio on"
"match:class ^(steam_app).*, immediate on"
];
};
}
+13
View File
@@ -0,0 +1,13 @@
{ config, pkgs, lib, ... }:
{
imports = [
./hypr/default.nix
];
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
systemd.enable = true;
};
}