Changed: Hyprland Conf

This commit is contained in:
DerGrumpf 2025-03-25 22:09:32 +01:00
parent aab3a4fbb2
commit 86efe1ff25
4 changed files with 87 additions and 11 deletions

View File

@ -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;

View File

Before

Width:  |  Height:  |  Size: 17 MiB

After

Width:  |  Height:  |  Size: 17 MiB

View File

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 4.1 MiB

View File

@ -1,6 +0,0 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
obsidian
];
}