From 8140b1aad2393ac85acd06032dfb58d47ed35671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E4=BD=8F=E6=9F=B1=E9=96=93?= Date: Thu, 15 Feb 2024 19:33:37 +0000 Subject: [PATCH] fix IME 2/2 this makes fcitx5 available system-wide. still have to fix it on the browser, but the rest works just fine --- stumpwm/init.lisp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/stumpwm/init.lisp b/stumpwm/init.lisp index a05aed2..254b62b 100644 --- a/stumpwm/init.lisp +++ b/stumpwm/init.lisp @@ -35,6 +35,10 @@ (define-key *top-map* (kbd "M-v") "terminal") +(defcommand goldendict () () + (run-or-raise "goldendict" '(:class "GoldenDict-ng"))) +(define-key *top-map* (kbd "M-e") "goldendict") + (define-key *top-map* (kbd "M-d") "exec rofi -show run") (define-key *root-map* (kbd "R") "restart-hard") @@ -66,7 +70,15 @@ (run-shell-command "export GTK_IM_MODULE=fcitx") (run-shell-command "export QT_IM_MODULE=fcitx") (run-shell-command "export export XMODIFIERS=@im=fcitx") -(define-key *top-map* (kbd "M-e") "exec ~/.local/bin/goldendict") +(sleep 2) +(run-shell-command "fcitx5") +(sleep 2) + +(run-shell-command "xmodmap -e 'clear mod4'" t) ;; clears windowskey/mod4 + +(run-shell-command "xmodmap -e 'keycode 133 = F20'" t) ;;assigns F20 to keycode 133 + + (defun pretty-time () "日付を '17:19:51 2014年4月27日、日曜日' の形式で返します。"