exwm icon indicating copy to clipboard operation
exwm copied to clipboard

cannot input characters in xscreensaver when screen is locked

Open wxie2017 opened this issue 4 years ago • 1 comments

Here is my exwm setup

#+BEGIN_SRC emacs-lisp
  (require 'exwm)

  ;; simpel system tray
  (require 'exwm-systemtray)
  (exwm-systemtray-enable)

  (require 'exwm-config)
  (exwm-config-example)

  ;; using xim input
   ; (setenv "GTK_IM_MODULE" "xim")
   ; (setenv "QT_IM_MODULE" "xim")
   ; (setenv "XMODIFIERS" "@im=exwm-xim")
   ; (setenv "CLUTTER_IM_MODULE" "xim"))
  (require 'exwm-xim)
  (exwm-xim-enable)
  (push ?\C-\\ exwm-input-prefix-keys)   ;; 使用Ctrl + \ 切换输入法
#+END_SRC

exec emacs is the only thing I have in .xinitrc

I wanted to install a screenlocker, so I installed xscreensaver. However, when I locked my screen, I cannot input my password through my keyborad. I think this is serious problem - maybe I did not set it up correctly.

Is there any clue to set up a screen locker?

wxie2017 avatar Sep 08 '21 01:09 wxie2017

I am not using xscreensaver, so I cannot help you with that. But answering your question about "a screen locker" in general, I have a working setup using i3lock. However, it is a bit more complex, but it works also for locking with resuming from standby etc.

The basic idea:

  • Use xss-lock service to provide locking based on e.g. systemd events and X timeouts (see https://man.archlinux.org/man/xss-lock.1)
  • Have emacs act as a logind-lock handler via DBUS (set up here)
  • also bind some keys to execute the locking command (i3lock in my case) explicitly.

timor avatar Sep 08 '21 08:09 timor