feat(nixos): Add key binding for starting i3lock
This commit is contained in:
		
							parent
							
								
									051c111646
								
							
						
					
					
						commit
						f18e578c4b
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -18,6 +18,10 @@
 | 
			
		|||
  (interactive)
 | 
			
		||||
  (shell-command "exec light -U 10"))
 | 
			
		||||
 | 
			
		||||
(defun lock-screen ()
 | 
			
		||||
  (interactive)
 | 
			
		||||
  (shell-command "i3lock"))
 | 
			
		||||
 | 
			
		||||
(if is-nixos
 | 
			
		||||
    (progn
 | 
			
		||||
      (message "Running on NixOS, configuring ExWM.")
 | 
			
		||||
| 
						 | 
				
			
			@ -53,6 +57,7 @@
 | 
			
		|||
      ;; Brightness keys
 | 
			
		||||
      (exwm-input-set-key (kbd "<XF86MonBrightnessDown>") #'brightness-down)
 | 
			
		||||
      (exwm-input-set-key (kbd "<XF86MonBrightnessUp>") #'brightness-up)
 | 
			
		||||
      (exwm-input-set-key (kbd "<XF86Display>") #'lock-screen)
 | 
			
		||||
 | 
			
		||||
      ;; Line-editing shortcuts
 | 
			
		||||
      (exwm-input-set-simulation-keys
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue