Improve lock screen and lock command keybinding

This commit is contained in:
Jeremy Dormitzer 2019-12-07 09:49:07 -05:00
parent b622b7465a
commit 2867c879b6

View File

@ -12,7 +12,12 @@
(run-or-raise "firefox" '(:class "firefox")))
(defcommand lock () ()
(run-shell-command "i3lockmore --image-fill ~/Pictures/space-background.png -n"))
(run-shell-command
(concatenate 'string
"i3lockmore "
"--image-fill ~/Pictures/space-background.png "
"-n "
"--lock-icon ~/Pictures/lock.png")))
;; Keybindings
(define-key stumpwm:*root-map* (kbd "C-f") "firefox")
@ -20,6 +25,7 @@
(define-key stumpwm:*root-map* (kbd "w") "exec rofi -show window")
(define-key stumpwm:*root-map* (kbd "P") "exec passmenu")
(define-key stumpwm:*root-map* (kbd "N") "exec networkmanager_dmenu")
(define-key stumpwm:*root-map* (kbd "L") "lock")
(define-key *top-map* (kbd "XF86MonBrightnessDown") "exec light -U 5")
(define-key *top-map* (kbd "XF86MonBrightnessUp") "exec light -A 5")
(define-key *top-map* (kbd "XF86AudioRaiseVolume") "exec pavolume volup")