Config: install denote and some extra packages, add plocate support on linux, optimize keybindings

This commit is contained in:
2026-05-09 01:00:46 +08:00
parent 1808941dcb
commit f419304684
9 changed files with 88 additions and 34 deletions

View File

@@ -14,7 +14,7 @@
(let ((display-buffer-alist
'((".*" . (display-buffer-no-window . nil)))))
(async-shell-command command))))
(defun restart-fcitx5 ()
"Kill and restart fcitx5, to fix random issues in exwm."
(interactive)
@@ -24,6 +24,21 @@
(eshell-command "fcitx5 -d"))
(eshell-command "fcitx5 -d")))
(defun reboot ()
"Execute loginctl reboot command."
(interactive)
(eshell-command "loginctl reboot"))
(defun poweroff ()
"Execute loginctl poweroff command"
(interactive)
(eshell-command "loginctl poweroff"))
(defun suspend ()
"Execute loginctl suspend command"
(interactive)
(eshell-command "loginctl suspend"))
(defun my--exwm-switch-to-workspace (delta)
(let ((target
(mod (+ exwm-workspace-current-index delta)