Add i3 lock, shutdown etc.
This commit is contained in:
parent
697085c221
commit
8f38352515
2 changed files with 11 additions and 3 deletions
|
@ -33,7 +33,4 @@
|
|||
|
||||
security.pam.u2f.enable = true;
|
||||
programs.i3lock.u2fSupport = true;
|
||||
services.udev.extraRules = ''
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0660", GROUP:="onlykey", RUN+="${pkgs.i3lock}/bin/i3lock"
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -84,6 +84,17 @@ pkgs.writeText "i3-conf" ''
|
|||
bindsym $mod+Return exec alacritty
|
||||
bindsym $mod+d exec --no-startup-id "rofi -theme 'Arc-Dark' -show combi -combi-modes 'run' -modes combi"
|
||||
|
||||
bindsym $mod+Shift+p mode "$mode_system"
|
||||
set $mode_system (l)ock, (h)ibernate, (r)eboot, (s)hutdown
|
||||
mode "$mode_system" {
|
||||
bindsym l exec --no-startup-id i3lock, mode "default"
|
||||
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
|
||||
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
||||
bindsym s exec --no-startup-id systemctl poweroff, mode "default"
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
|
||||
|
||||
font xft:DejaVuSansMono-Book 14
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue