EXWM: Remove C-c prefix key to allow for copying in graphical programs.
parent
3b1d3823eb
commit
f68ca16425
|
@ -141,18 +141,18 @@ be missing."
|
|||
#:respawn? #t))
|
||||
|
||||
(define location-paris "48.51:2.20")
|
||||
(define redshift ; TODO: Test!
|
||||
(define redshift
|
||||
(make <service>
|
||||
#:provides '(redshift)
|
||||
#:docstring "Redshift adjusts the color temperature of your screen according
|
||||
to your surroundings. This may help your eyes hurt less if you are working in
|
||||
front of the screen at night."
|
||||
#:start (make-system-constructor
|
||||
(format #f "redshift -l ~a -t 6500:3500" location-paris)
|
||||
#:log-file (string-append
|
||||
(or (getenv "XDG_CONFIG_HOME")
|
||||
(string-append (getenv "HOME") "/.config"))
|
||||
"/redshift/redshift.log"))
|
||||
#:start (make-forkexec-constructor
|
||||
(list "redshift" "-l" location-paris "-t 6500:3500")
|
||||
#:log-file (string-append
|
||||
(or (getenv "XDG_CONFIG_HOME")
|
||||
(string-append (getenv "HOME") "/.config"))
|
||||
"/redshift/redshift.log"))
|
||||
#:stop (make-kill-destructor)
|
||||
#:respawn? #t))
|
||||
|
||||
|
|
|
@ -278,6 +278,11 @@ WIth SETTING to :ENABLE or :DISABLE, set"
|
|||
;; TODO: Turn the toggle into a global minor mode.
|
||||
;; Even better: Use autorandr_launcher (https://github.com/phillipberndt/autorandr/issues/210).
|
||||
|
||||
;; Don't intercept "C-c" since it frequently used to copy text.
|
||||
;; EXWM local key bindings won't be availble then.
|
||||
;; See https://github.com/ch11ng/exwm/wiki#local-key-bindings.
|
||||
(define-key exwm-mode-map (kbd "C-c") nil)
|
||||
|
||||
(setq exwm-edit-bind-default-keys nil)
|
||||
;; REVIEW: The following prevents passing "C-c" to the child window.
|
||||
;; (when (require 'exwm-edit nil 'noerror)
|
||||
|
|
Loading…
Reference in New Issue