add swaylock config
This commit is contained in:
parent
1465a5e746
commit
031f16f3af
|
@ -155,7 +155,8 @@ let
|
||||||
|
|
||||||
# vim: ft=fish
|
# vim: ft=fish
|
||||||
'';
|
'';
|
||||||
volumesh = pkgs.writeShellScriptBin "volumesh" (builtins.readFile ./scripts/volumesh);
|
volumesh =
|
||||||
|
pkgs.writeShellScriptBin "volumesh" (builtins.readFile ./scripts/volumesh);
|
||||||
in {
|
in {
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
# paths it should manage.
|
# paths it should manage.
|
||||||
|
@ -349,7 +350,8 @@ in {
|
||||||
};
|
};
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "hx";
|
EDITOR = "hx";
|
||||||
VOLUME_CHANGE_SOUND = "${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/audio-volume-change.oga";
|
VOLUME_CHANGE_SOUND =
|
||||||
|
"${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/audio-volume-change.oga";
|
||||||
};
|
};
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -753,8 +755,9 @@ in {
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 1800;
|
timeout = 1800;
|
||||||
command = "mpc status | grep \"^\[playing\]\" > /dev/null || swaymsg \"output * dpms off\"";
|
command = ''
|
||||||
resumeCommand = "swaymsg \"output * dpms on\"";
|
mpc status | grep "^[playing]" > /dev/null || swaymsg "output * dpms off"'';
|
||||||
|
resumeCommand = ''swaymsg "output * dpms on"'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
events = [{
|
events = [{
|
||||||
|
@ -762,6 +765,24 @@ in {
|
||||||
command = "swaylock -f";
|
command = "swaylock -f";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
home.file.".config/swaylock/config".text = ''
|
||||||
|
image=${theme.background}
|
||||||
|
font=${font.interface}
|
||||||
|
font-size=${font.size.medium}
|
||||||
|
indicator-thickness=20
|
||||||
|
color=${color.bg}
|
||||||
|
inside-color=#FFFFFF00
|
||||||
|
bs-hl-color=${color.normal.red}
|
||||||
|
ring-color=${color.normal.green}
|
||||||
|
key-hl-color=${accent.color}
|
||||||
|
# divisor lines
|
||||||
|
separator-color=#aabbcc00
|
||||||
|
line-color=#aabbcc00
|
||||||
|
line-clear-color=#aabbcc00
|
||||||
|
line-caps-lock-color=#aabbcc00
|
||||||
|
line-ver-color=#aabbcc00
|
||||||
|
line-wrong-color=#aabbcc00
|
||||||
|
'';
|
||||||
services.gammastep = {
|
services.gammastep = {
|
||||||
enable = true;
|
enable = true;
|
||||||
provider = "geoclue2";
|
provider = "geoclue2";
|
||||||
|
@ -841,7 +862,6 @@ in {
|
||||||
|
|
||||||
# # vim: ft=ini
|
# # vim: ft=ini
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
home.activation = {
|
home.activation = {
|
||||||
install_flatpaks = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
install_flatpaks = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
|
Loading…
Reference in a new issue