From ea00f9978641fb9754c065e3a838d6edc3ebdf98 Mon Sep 17 00:00:00 2001 From: rydesun Date: Fri, 26 Feb 2021 19:43:28 +0800 Subject: [PATCH] Add keybindings --- .config/X11/profile | 1 + .config/xbindkeys/config | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 .config/xbindkeys/config diff --git a/.config/X11/profile b/.config/X11/profile index e8a8e24..beac2d6 100644 --- a/.config/X11/profile +++ b/.config/X11/profile @@ -7,4 +7,5 @@ export LANG=zh_CN.UTF-8 # swap Ctrl_R and Alt_R setxkbmap -option ctrl:rctrl_ralt setxkbmap -option ctrl:ralt_rctrl + xbindkeys -f ${XDG_CONFIG_HOME}/xbindkeys/config ) & diff --git a/.config/xbindkeys/config b/.config/xbindkeys/config new file mode 100644 index 0000000..cb64167 --- /dev/null +++ b/.config/xbindkeys/config @@ -0,0 +1,5 @@ +"xdotool keydown super && notify-send -t 5000 xdotool 正在持续按住Super键..." + b:9 + +"xdotool keyup super; notify-send -t 5000 xdotool 松开Super键。" + Mod4 + b:8 + Release