====== XFce4 ====== 色々と微妙なところがあるけど軽快なので手放せないDesktop環境。 ===== CapsLock → Ctrl ===== startup に登録。 setxkbmap -option ctrl:nocaps ===== Emacsキーバインド ===== {{:linux:xfce4_emacs.png?400|}} ===== ナチュラルスクロール ===== libinput でなく Synaptics が使われているとクソなので、まずはその対処を。 $ sudo mkdir /etc/X11/xorg.conf.d (← Ubuntu 18.04 にはなかった) $ sudo cp /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d 設定の「マウスとタッチパッド」で「スクロール方向を反転する」にチェックを入れると行けそうな気がするんだけど、一部のアプリケーションで効くだけでその他は効かないという中途半端なもの。 {{:linux:xfce4_naturalscroll.png?400|}} そこで、まずタッチパッドの ID を取得 $ xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ SynPS/2 Synaptics TouchPad id=10 [slave pointer (2)] ⎜ ↳ TPPS/2 Elan TrackPoint id=11 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=9 [slave keyboard (3)] ↳ ThinkPad Extra Buttons id=12 [slave keyboard (3)] ここでは id=10 がタッチパッド。id=10 のデバイスのプロパティを取得。 $ xinput list-props 10 Device 'SynPS/2 Synaptics TouchPad': Device Enabled (150): 1 Coordinate Transformation Matrix (152): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 libinput Tapping Enabled (285): 0 libinput Tapping Enabled Default (286): 0 libinput Tapping Drag Enabled (287): 1 libinput Tapping Drag Enabled Default (288): 1 libinput Tapping Drag Lock Enabled (289): 0 libinput Tapping Drag Lock Enabled Default (290): 0 libinput Tapping Button Mapping Enabled (291): 1, 0 libinput Tapping Button Mapping Default (292): 1, 0 libinput Natural Scrolling Enabled (293): 1 libinput Natural Scrolling Enabled Default (294): 0 libinput Disable While Typing Enabled (295): 1 libinput Disable While Typing Enabled Default (296): 1 libinput Scroll Methods Available (297): 1, 1, 0 libinput Scroll Method Enabled (298): 1, 0, 0 libinput Scroll Method Enabled Default (299): 1, 0, 0 libinput Click Methods Available (300): 1, 1 libinput Click Method Enabled (301): 0, 1 libinput Click Method Enabled Default (302): 1, 0 libinput Middle Emulation Enabled (303): 0 libinput Middle Emulation Enabled Default (304): 0 libinput Accel Speed (305): -0.600000 libinput Accel Speed Default (306): 0.000000 libinput Left Handed Enabled (307): 0 libinput Left Handed Enabled Default (308): 0 libinput Send Events Modes Available (270): 1, 1 libinput Send Events Mode Enabled (271): 0, 0 libinput Send Events Mode Enabled Default (272): 0, 0 Device Node (273): "/dev/input/event6" Device Product ID (274): 2, 7 libinput Drag Lock Buttons (309): libinput Horizontal Scroll Enabled (310): 1 対象のプロパティ "libinput Natural Scrolling Enabled" を 1 にする。 xinput set-prop 10 "libinput Natural Scrolling Enabled" 1 ===== $HOME のディレクトリ名を英語に ===== $ LANG=C xdg-user-dirs-gtk-update