ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
linux:wm:awesome

tips

マウスカーソルの位置をハイライト表示する

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

xmessageで日本語等を使いたい

既定値で日本語等を渡すと文字化けする.

~/.Xresources に以下の行を追記

xmessage*international: True

以下のコマンドで反映

$ xrdb ~/.Xresources

コメント

コメントを入力. Wiki文法が有効です:
   ____   __ __   ___    _  __   __ 
  / __/  / // /  / _ \  / |/ /  / / 
 / _/   / _  /  / , _/ /    /  / /__
/___/  /_//_/  /_/|_| /_/|_/  /____/
 
linux/wm/awesome.txt · 最終更新: 2021/04/04 22:07 by matoken