Browse Source

Use custom instead of setq

main
parent
commit
5c641904e7
  1. 18
      modules/desktop.el

18
modules/desktop.el

@ -21,23 +21,21 @@
(dotfiles/run-in-background "autorandr --change --force"))
(use-package exwm
:config
(require 'exwm-randr)
(exwm-randr-enable)
(add-hook 'exwm-init-hook #'dotfiles/init-hook)
(add-hook 'exwm-randr-screen-change-hook #'dotfiles/update-display)
(dotfiles/update-display)
(setq exwm-input-prefix-keys
:custom (exwm-input-prefix-keys
'(?\M-x
?\C-g
?\C-\ )
exwm-input-global-keys
?\C-\ ))
(exwm-input-global-keys
`(([?\s-r] . exwm-reset)
([?\s-&] . dotfiles/run)
,@(mapcar (lambda (i)
`(,(kbd (format "s-%d" i)) .
(lambda ()
(interactive)
(exwm-workspace-switch-create ,i))))
(number-sequence 1 9))))
:config (require 'exwm-randr)
(exwm-randr-enable)
(add-hook 'exwm-init-hook #'dotfiles/init-hook)
(add-hook 'exwm-randr-screen-change-hook #'dotfiles/update-display)
(dotfiles/update-display)
(exwm-enable))
Loading…
Cancel
Save