Compare commits
3 Commits
eebec40ea0
...
98b7c99023
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98b7c99023 | ||
|
|
d0f7e67d3d | ||
|
|
a6ec85d1ef |
@@ -9,11 +9,16 @@ in
|
|||||||
{
|
{
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
WLR_NO_HARDWARE_CURSORS = "1";
|
WLR_NO_HARDWARE_CURSORS = "1";
|
||||||
|
HYPRLAND_LOG_WLR = "1";
|
||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
"debug" = {
|
||||||
|
"disable_logs" = false;
|
||||||
|
"enable_stdout_logs" = true;
|
||||||
|
};
|
||||||
"cursor" = {
|
"cursor" = {
|
||||||
"no_hardware_cursors" = true;
|
"no_hardware_cursors" = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,35 +3,34 @@
|
|||||||
{
|
{
|
||||||
services.hypridle = {
|
services.hypridle = {
|
||||||
enable = config.nomarchy.toggles.idle;
|
enable = config.nomarchy.toggles.idle;
|
||||||
extraConfig = ''
|
settings = {
|
||||||
general {
|
general = {
|
||||||
lock_cmd = nomarchy-lock-screen # lock screen and 1password
|
lock_cmd = "nomarchy-lock-screen";
|
||||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
before_sleep_cmd = "loginctl lock-session";
|
||||||
after_sleep_cmd = sleep 1 && hyprctl dispatch dpms on # delay for PAM readiness, then turn on display.
|
after_sleep_cmd = "sleep 1 && hyprctl dispatch dpms on";
|
||||||
inhibit_sleep = 3 # wait until screen is locked
|
inhibit_sleep = 3;
|
||||||
}
|
};
|
||||||
|
|
||||||
listener {
|
listener = [
|
||||||
timeout = 150 # 2.5min
|
{
|
||||||
on-timeout = pidof hyprlock || nomarchy-launch-screensaver # start screensaver (if we haven't locked already)
|
timeout = 150;
|
||||||
|
on-timeout = "pidof hyprlock || nomarchy-launch-screensaver";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
listener {
|
timeout = 151;
|
||||||
timeout = 151 # 5min
|
on-timeout = "loginctl lock-session";
|
||||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
|
||||||
}
|
}
|
||||||
|
{
|
||||||
listener {
|
timeout = 330;
|
||||||
timeout = 330 # 5.5min
|
on-timeout = "brightnessctl -sd '*::kbd_backlight' set 0";
|
||||||
on-timeout = brightnessctl -sd '*::kbd_backlight' set 0 # save state and turn off keyboard backlight
|
on-resume = "brightnessctl -rd '*::kbd_backlight'";
|
||||||
on-resume = brightnessctl -rd '*::kbd_backlight' # restore keyboard backlight
|
|
||||||
}
|
}
|
||||||
|
{
|
||||||
listener {
|
timeout = 330;
|
||||||
timeout = 330 # 5.5min
|
on-timeout = "hyprctl dispatch dpms off";
|
||||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
on-resume = "hyprctl dispatch dpms on && brightnessctl -r";
|
||||||
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected
|
|
||||||
}
|
}
|
||||||
'';
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ let
|
|||||||
pname = "nomarchy-sddm-theme";
|
pname = "nomarchy-sddm-theme";
|
||||||
version = "1.0";
|
version = "1.0";
|
||||||
src = ../../assets/sddm/nomarchy;
|
src = ../../assets/sddm/nomarchy;
|
||||||
|
nativeBuildInputs = [ pkgs.libsForQt5.qt5.wrapQtAppsHook ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share/sddm/themes/nomarchy
|
mkdir -p $out/share/sddm/themes/nomarchy
|
||||||
cp -r * $out/share/sddm/themes/nomarchy/
|
cp -r * $out/share/sddm/themes/nomarchy/
|
||||||
|
|||||||
Reference in New Issue
Block a user