Gnome等ではマウスカーソル位置を見失った時にマウスカーソル位置を Ctrl key でハイライト表示できる.awesome wmでもこれをやりたい.
find-cursorを導入して実現する.
$ git clone https://github.com/arp242/find-cursor $ cd find-cursor $ make $ cp ./find-cursor ~/bin/
~/.config/awesome/rc.lua
を編集して適当なキーバインドで呼ぶようにする.以下ではmod4+Ctrl+cでオレンジ色のハイライトが表示される.
awful.key({ modkey, "Control" }, "c", function () awful.util.spawn("find-cursor --color orange") end),
~/.Xresources
に以下のような行を書く.次のセッションから有効.
Xcursor.size: 48
~/.icons/default/index.theme
を編集
[icon theme] Inherits=redglass
テーマは /etc/X11/cursors/*.theme
から
$ ls /etc/X11/cursors/*.theme /etc/X11/cursors/core.theme /etc/X11/cursors/oxy-emerald.theme /etc/X11/cursors/oxy-obsidian-hc.theme /etc/X11/cursors/oxy-red.theme /etc/X11/cursors/oxy-wonton.theme /etc/X11/cursors/handhelds.theme /etc/X11/cursors/oxy-green.theme /etc/X11/cursors/oxy-obsidian.theme /etc/X11/cursors/oxy-sea_blue.theme /etc/X11/cursors/oxy-yellow.theme /etc/X11/cursors/oxy-black.theme /etc/X11/cursors/oxy-grey.theme /etc/X11/cursors/oxy-olympus-inv.theme /etc/X11/cursors/oxy-steel.theme /etc/X11/cursors/oxy-zion.theme /etc/X11/cursors/oxy-blue.theme /etc/X11/cursors/oxy-honeycomb.theme /etc/X11/cursors/oxy-olympus.theme /etc/X11/cursors/oxy-terra.theme /etc/X11/cursors/redglass.theme /etc/X11/cursors/oxy-bluecurve.theme /etc/X11/cursors/oxy-hot_orange.theme /etc/X11/cursors/oxy-orchid.theme /etc/X11/cursors/oxy-terra_green.theme /etc/X11/cursors/whiteglass.theme /etc/X11/cursors/oxy-brown.theme /etc/X11/cursors/oxy-lilac.theme /etc/X11/cursors/oxy-oxygen.theme /etc/X11/cursors/oxy-violet.theme /etc/X11/cursors/oxy-cherry.theme /etc/X11/cursors/oxy-midnight_meadow.theme /etc/X11/cursors/oxy-peach.theme /etc/X11/cursors/oxy-viorange.theme /etc/X11/cursors/oxy-chrome.theme /etc/X11/cursors/oxy-navy.theme /etc/X11/cursors/oxy-purple.theme /etc/X11/cursors/oxy-white.theme /etc/X11/cursors/oxy-desert.theme /etc/X11/cursors/oxy-norway.theme /etc/X11/cursors/oxy-red-argentina.theme /etc/X11/cursors/oxy-whitewater.theme
既定値で日本語等を渡すと文字化けする.
~/.Xresources
に以下の行を追記
xmessage*international: True
以下のコマンドで反映
$ xrdb ~/.Xresources
コメント