This commit is contained in:
Hadi
2024-08-22 21:02:14 +02:00
parent 28424b82ab
commit d816099985
12 changed files with 180 additions and 107 deletions

View File

@@ -29,6 +29,7 @@
enable = true;
xwayland.enable = true;
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
# plugins = [ inputs.hyprland-plugins.packages.${pkgs.system}.hyprexpo ]; # TODO: Fix, stack overflow
settings = {
"$mod" = "SUPER";
@@ -111,7 +112,10 @@
"GTK2_RC_FILES,/home/hadi/.local/share/themes/FlatColor/gtk-2.0/gtkrc"
];
cursor = { no_hardware_cursors = true; };
cursor = {
no_hardware_cursors = true;
default_monitor = "eDP-2";
};
general = {
resize_on_border = true;
@@ -133,7 +137,11 @@
blur = { enabled = false; };
};
master = { new_status = true; };
master = {
new_status = true;
allow_small_split = true;
mfact = 0.5;
};
gestures = { workspace_swipe = true; };

View File

@@ -3,19 +3,25 @@
services.hypridle = {
enable = true;
settings = {
general = { ignore_dbus_inhibit = false; };
listener = [{
timeout = 600;
on-timeout = pkgs.hyprlock + "/bin/hyprlock";
}
# {
# timeout = 660;
# on-timeout = "systemctl suspend";
# on-resume = pkgs.libnotify
# + "/bin/notify-send 'Welcome back to your desktop!'";
# }
];
general = {
ignore_dbus_inhibit = false;
lock_cmd = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
before_sleep_cmd = "loginctl lock-session";
after_sleep_cmd = "hyprctl dispatch dpms on";
};
listener = [
{
timeout = 600;
on-timeout = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
}
{
timeout = 660;
on-timeout = "systemctl suspend";
}
];
};
};
}