This commit is contained in:
parent
cabf5f52e1
commit
472d9b0b05
3 changed files with 46 additions and 18 deletions
|
|
@ -36,13 +36,6 @@
|
||||||
temperature.day = 6000;
|
temperature.day = 6000;
|
||||||
temperature.night = 3500;
|
temperature.night = 3500;
|
||||||
};
|
};
|
||||||
swayidle = {
|
|
||||||
enable = true;
|
|
||||||
events = {
|
|
||||||
"before-sleep" = "${config.programs.swaylock.package}/bin/swaylock";
|
|
||||||
"lock" = "${config.programs.swaylock.package}/bin/swaylock";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
mako.enable = true;
|
mako.enable = true;
|
||||||
mako.settings = {
|
mako.settings = {
|
||||||
default-timeout = 5;
|
default-timeout = 5;
|
||||||
|
|
@ -62,14 +55,6 @@
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
swaylock = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
image = "/home/pape";
|
|
||||||
daemonize = true;
|
|
||||||
ignore-empty-password = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
xdg = {
|
xdg = {
|
||||||
configFile."mimeapps.list".force = true;
|
configFile."mimeapps.list".force = true;
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
"$mod, b, exec, pkill -SIGUSR1 waybar"
|
"$mod, b, exec, pkill -SIGUSR1 waybar"
|
||||||
"$mod, bracketleft, exec, grimshot --notify save area /tmp/scrot-$(date \"+%Y-%m-%d\"T\"%H:%M:%S\").png"
|
"$mod, bracketleft, exec, grimshot --notify save area /tmp/scrot-$(date \"+%Y-%m-%d\"T\"%H:%M:%S\").png"
|
||||||
"$mod, bracketright, exec, grimshot --notify copy area"
|
"$mod, bracketright, exec, grimshot --notify copy area"
|
||||||
"$mod SHIFT, q, exec, swaylock"
|
"$mod SHIFT, q, exec, hyprlock"
|
||||||
",XF86MonBrightnessDown, exec, light -U 10"
|
",XF86MonBrightnessDown, exec, light -U 10"
|
||||||
",XF86MonBrightnessUp, exec, light -A 10"
|
",XF86MonBrightnessUp, exec, light -A 10"
|
||||||
",XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +1%"
|
",XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +1%"
|
||||||
|
|
@ -126,7 +126,7 @@
|
||||||
let
|
let
|
||||||
c = (x + 1) / 10;
|
c = (x + 1) / 10;
|
||||||
in
|
in
|
||||||
builtins.toString (x + 1 - (c * 10));
|
toString (x + 1 - (c * 10));
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
"$mod, ${ws}, focusworkspaceoncurrentmonitor, ${toString (x + 1)}"
|
"$mod, ${ws}, focusworkspaceoncurrentmonitor, ${toString (x + 1)}"
|
||||||
|
|
@ -169,6 +169,49 @@
|
||||||
splash = false;
|
splash = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
services.hypridle = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
general = {
|
||||||
|
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||||
|
ignore_dbus_inhibit = false;
|
||||||
|
lock_cmd = "hyprlock";
|
||||||
|
};
|
||||||
|
listener = [
|
||||||
|
{
|
||||||
|
timeout = 900;
|
||||||
|
on-timeout = "hyprlock";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
timeout = 1200;
|
||||||
|
on-timeout = "hyprctl dispatch dpms off";
|
||||||
|
on-resume = "hyprctl dispatch dpms on";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
programs.hyprlock = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
background = {
|
||||||
|
monitor = "";
|
||||||
|
path = "/home/pape";
|
||||||
|
blur_passes = 5;
|
||||||
|
};
|
||||||
|
general = {
|
||||||
|
ignore_empty_input = true;
|
||||||
|
};
|
||||||
|
input-field = {
|
||||||
|
monitor = "";
|
||||||
|
size = "5%, 5%";
|
||||||
|
outline_thickness = 1;
|
||||||
|
inner_color = "rgba(0, 0, 0, 0.0)";
|
||||||
|
hide_input = true;
|
||||||
|
halign = "center";
|
||||||
|
valign = "center";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security.pam.services.swaylock = { };
|
security.pam.services.hyprlock = { };
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xdgOpenUsePortal = false;
|
xdgOpenUsePortal = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue