parent
a998d64fa9
commit
624940eb8d
2 changed files with 4 additions and 0 deletions
|
@ -21,5 +21,7 @@
|
||||||
onlykey-cli
|
onlykey-cli
|
||||||
];
|
];
|
||||||
|
|
||||||
|
security.pam.u2f.enable = true;
|
||||||
hardware.onlykey.enable = true;
|
hardware.onlykey.enable = true;
|
||||||
|
programs.i3lock.u2fSupport = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,6 +100,8 @@ pkgs.writeText "i3-conf" ''
|
||||||
bindsym $mod+Shift+p mode "$mode_system"
|
bindsym $mod+Shift+p mode "$mode_system"
|
||||||
set $mode_system (l)ock, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown
|
set $mode_system (l)ock, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown
|
||||||
mode "$mode_system" {
|
mode "$mode_system" {
|
||||||
|
bindsym l exec --no-startup-id i3lock, mode "default"
|
||||||
|
bindsym s exec --no-startup-id systemctl suspend, mode "default"
|
||||||
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
|
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
|
||||||
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
||||||
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
|
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue