qtile-desktop: use i3lock instead of xscreensaver
This commit is contained in:
parent
b92f1649bd
commit
ce2aec78bc
1 changed files with 18 additions and 3 deletions
|
@ -35,6 +35,23 @@ let
|
||||||
terminalCommand = "${pkgs.alacritty}/bin/alacritty";
|
terminalCommand = "${pkgs.alacritty}/bin/alacritty";
|
||||||
# terminalCommand = "${pkgs.roxterm}/bin/roxterm";
|
# terminalCommand = "${pkgs.roxterm}/bin/roxterm";
|
||||||
|
|
||||||
|
screenLockCommand = pkgs.writeScript "screenLock" ''
|
||||||
|
#!${pkgs.bash}/bin/bash
|
||||||
|
export PATH=${with pkgs; lib.makeBinPath [
|
||||||
|
xlibs.xset i3lock
|
||||||
|
]}:$PATH
|
||||||
|
|
||||||
|
revert() {
|
||||||
|
xset dpms 0 0 0
|
||||||
|
}
|
||||||
|
|
||||||
|
trap revert HUP INT TERM
|
||||||
|
xset +dpms dpms 5 5 5
|
||||||
|
i3lock -n -c 000000 -e -f
|
||||||
|
|
||||||
|
revert
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
qtileConfig = pkgs.writeScript "qtile_config.py" ''
|
qtileConfig = pkgs.writeScript "qtile_config.py" ''
|
||||||
from libqtile.config import Key, Screen, Group, Drag, Click
|
from libqtile.config import Key, Screen, Group, Drag, Click
|
||||||
|
@ -264,9 +281,8 @@ in {
|
||||||
screen-locker = {
|
screen-locker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inactiveInterval = 7;
|
inactiveInterval = 7;
|
||||||
lockCmd = "${pkgs.xscreensaver}/bin/xscreensaver-command -lock";
|
lockCmd = "${screenLockCommand}";
|
||||||
};
|
};
|
||||||
xscreensaver.enable = true;
|
|
||||||
network-manager-applet.enable = true;
|
network-manager-applet.enable = true;
|
||||||
syncthing.enable = true;
|
syncthing.enable = true;
|
||||||
gpg-agent = {
|
gpg-agent = {
|
||||||
|
@ -299,7 +315,6 @@ in {
|
||||||
# X Tools/Libraries
|
# X Tools/Libraries
|
||||||
lightdm
|
lightdm
|
||||||
qtile
|
qtile
|
||||||
xscreensaver
|
|
||||||
gnome3.networkmanagerapplet
|
gnome3.networkmanagerapplet
|
||||||
autorandr
|
autorandr
|
||||||
arandr
|
arandr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue