sway: colorfull lockscreen and longer timeout
This commit is contained in:
parent
3d056c581b
commit
083e434dac
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, nixosConfig, lib, ... }:
|
{ pkgs, nixosConfig, lib, ... }:
|
||||||
let
|
let
|
||||||
lockCmd = "${pkgs.swaylock}/bin/swaylock -c 100000ff";
|
lockCmd = "${pkgs.swaylock}/bin/swaylock -c 645394";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
|
@ -47,8 +47,8 @@ in
|
||||||
startup = [
|
startup = [
|
||||||
{
|
{
|
||||||
command = ''${pkgs.swayidle}/bin/swayidle -w \
|
command = ''${pkgs.swayidle}/bin/swayidle -w \
|
||||||
timeout 300 "${lockCmd}" \
|
timeout 600 "${lockCmd}" \
|
||||||
timeout 600 "${pkgs.sway}/bin/swaymsg output * dpms off" \
|
timeout 900 "${pkgs.sway}/bin/swaymsg output * dpms off" \
|
||||||
resume "${pkgs.sway}/bin/swaymsg output * dpms on" \
|
resume "${pkgs.sway}/bin/swaymsg output * dpms on" \
|
||||||
before-sleep "${lockCmd}"'';
|
before-sleep "${lockCmd}"'';
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ in
|
||||||
"XF86AudioRaiseVolume" =
|
"XF86AudioRaiseVolume" =
|
||||||
"exec ${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
|
"exec ${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
# Tools, AudioMute, AudioLowerVolume
|
# Tools, AudioMute, AudioLowerVolume
|
||||||
"XF86Tools" = "exec killall -USR1 swayidle";
|
"XF86Tools" = "exec ${lockCmd}";
|
||||||
"XF86AudioMute" =
|
"XF86AudioMute" =
|
||||||
"exec ${pactl} set-sink-mute @DEFAULT_SINK@ toggle";
|
"exec ${pactl} set-sink-mute @DEFAULT_SINK@ toggle";
|
||||||
"XF86AudioLowerVolume" =
|
"XF86AudioLowerVolume" =
|
||||||
|
|
Loading…
Reference in a new issue