From 86efe1ff25678fd9b10f39c7a76af1671ee64e18 Mon Sep 17 00:00:00 2001 From: DerGrumpf Date: Tue, 25 Mar 2025 22:09:32 +0100 Subject: [PATCH] Changed: Hyprland Conf --- home/hyprland/default.nix | 92 ++++++++++++++++++- home/hyprland/{conf => }/wallpapers/girl.png | Bin home/hyprland/{conf => }/wallpapers/lucy.jpg | Bin home/obsidian/default.nix | 6 -- 4 files changed, 87 insertions(+), 11 deletions(-) rename home/hyprland/{conf => }/wallpapers/girl.png (100%) rename home/hyprland/{conf => }/wallpapers/lucy.jpg (100%) delete mode 100644 home/obsidian/default.nix diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 5268e99..04ff684 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -6,24 +6,44 @@ let fileManager = "dolphin"; menu = "~/.config/rofi/launchers/type-3/launcher.sh"; power = "~/.config/rofi/powermenu/type-6/powermenu.sh"; - in { imports = [ ./kitty.nix # Terminal ../waybar # Status Bar ../rofi # App Launcher - ../obsidian # Might Change + ]; + + home.packages = with pkgs; [ + slurp + wl-clipboard + + obsidian ]; + home.file = { + "Pictures/Wallpapers" = { + source = ./wallpapers; + recursive = true; + }; + }; + + systemd.user.targets.hyprland-sessionn.Unit.Wants = [ + "xdg-desktop-autostart.target" + ]; wayland.windowManager.hyprland = { inherit package; enable = true; + package = pkgs.hyprland; + xwayland = { enable = true; }; + systemd = { enable = true; variables = [ "--all" ]; + enableXdgAutostart = true; }; + plugins = [ #inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars ]; @@ -40,6 +60,7 @@ in "SDL_VIDEODRIVER,wayland" "GDK_BACKEND,wayland" "XCURSOR_SIZE,24" + "EDITOR,nvim" ]; monitor = [ @@ -47,9 +68,70 @@ in "HDMI-A-2, 1920x1080@60, 0x0, 1" ]; + input = { + kb_layout = "de"; + repeat_rate = 50; + repeat_delay = 300; + + accel_profile = "flat"; + follow_mouse = 1; + mouse_refocus = false; + sensitivity = 0; # -1.0 to 1.0, 0 means no modification. + + numlock_by_default = 1; + touchpad = { + natural_scroll = true; + }; + + }; + + general = { + # See https://wiki.hyprland.org/Configuring/Variables/ for more + gaps_in = 5; + gaps_out = 0; + border_size = 2; + col.active_border = "rgba(33ccffee) rgba(00ff99ee) 45deg"; + col.inactive_border = "rgba(595959aa)"; + + layout = "dwindle"; + + # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on + allow_tearing = false; + }; + + dwindle = { + # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more + pseudotile = "yes"; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below + preserve_split = "yes"; # you probably want this + }; + + master = { + # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more + new_is_master = true; + }; + + gestures = { + # See https://wiki.hyprland.org/Configuring/Variables/ for more + workspace_swipe = "off"; + }; + + misc = { + # See https://wiki.hyprland.org/Configuring/Variables/ for more + force_default_wallpaper = -1; # Set to 0 or 1 to disable the anime mascot wallpapers + }; + + # Example per-device config + # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more + device = { + name = "epic-mouse-v1"; + sensitivity = -0.5; + }; + + windowrulev2 = "suppressevent maximize, class:.*"; + exec-once = [ - "waybar" - "hyprpaper" + "waybar &" + "hyprpaper &" "firefox" ]; @@ -133,7 +215,7 @@ in }; # NOTE: this executable is used by greetd to start a wayland session when system boot up - # with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config in NixOS module + # with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config in NixOS module home.file.".wayland-session" = { source = "${package}/bin/Hyprland"; executable = true; diff --git a/home/hyprland/conf/wallpapers/girl.png b/home/hyprland/wallpapers/girl.png similarity index 100% rename from home/hyprland/conf/wallpapers/girl.png rename to home/hyprland/wallpapers/girl.png diff --git a/home/hyprland/conf/wallpapers/lucy.jpg b/home/hyprland/wallpapers/lucy.jpg similarity index 100% rename from home/hyprland/conf/wallpapers/lucy.jpg rename to home/hyprland/wallpapers/lucy.jpg diff --git a/home/obsidian/default.nix b/home/obsidian/default.nix deleted file mode 100644 index 3953db2..0000000 --- a/home/obsidian/default.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ pkgs, ... }: { - - environment.systemPackages = with pkgs; [ - obsidian - ]; -}