Desktop Settings

各OSでの設定で迷いそうなところをまとめておく。

Common settings

my github gists

openbsd-cwm

fontname "Noto Sans CJK JP:bold"
command term uxterm

ignore xclock
ignore feh

## for emacs
unbind-key M-slash
unbind-key C-slash
unbind-key M-right
unbind-key M-Left
unbind-key M-period
unbind-key M-question
unbind-key m-h
unbind-key m-j
unbind-key M-k
unbind-key M-l
unbind-key M-Tab

MPLUS 1 Code

Download zip from Google Fonts: https://fonts.google.com/?query=Coji+Morishita&vfonly=true

unzip M_PLUS_1_Code.zip
mv static/*.ttf $HOME/.fonts
fc-cache
fc-list

Unicode fonts on xterm

Summary

  1. Download BDF font files
  2. Convert BDF files using jis2unicode (aux. tool for monafonts)
  3. Concatenate BDF files (alphabets and Japanese chars) and edit BDF headers
  4. Convert BDF files into gzipped PCF files using bdftopcf and gzip
  5. Install fonts (gzipped PCF files)

Secure screen after suspending

xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace"
pkill xidle
xidle -delay 5 -sw -program "/usr/X11R6/bin/xlock -mode blank" -timeout 90 &

What does xidle do? man xidle says

xidle uses the XScreenSaver(3) extension to receive inactivity events when a timeout is specified, running a specific program after the elapsed time.

xidle will also run the program if it is sent a SIGUSR signal, or if the pointer sits in a corder of the screen for an amount of time.

Ubuntu 24.04

インストール時

日本語入力

sudo apt instal ibus-skk
sudo sed -i.bak "s|<layout>ja</layout>|<layout>default</layout>|"  /usr/share/ibus/component/skk.xml
ibus restart

Chrome OS

xrdbを読み込んでくれない

.xprofileに書いてみたがうまくいくか。

Links