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
- https://www.xmisao.com/2013/08/17/mplus-unicode-font.html
- https://www.xmisao.com/2013/08/17/how-to-add-fonts-on-linux.html
- http://blawat2015.no-ip.com/~mieki256/diary/201412152.html
- https://alpha3166.github.io/blog/20110501.html
Summary
- Download BDF font files
- Convert BDF files using
jis2unicode
(aux. tool for monafonts) - Concatenate BDF files (alphabets and Japanese chars) and edit BDF headers
- Convert BDF files into gzipped PCF files using
bdftopcf
andgzip
- 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
インストール時
- USBドライブにしたけど次は Ventoy をつかってみたい
- To disable on-boot VGA, add “nomodeset” to boot options
- check
/etc/default/grub
for “nomodeset” setting and runupdate-grub
command - Steam はsnapではなく、公式からダウンロードする
- インストール後、シェーダーキャッシュの生成をやめる設定をする
- デスクトップのカスタマイズ
sudo apt install gnome-browser-connector
- サウンドデバイスの変更と確認
wpctl set-default <id>
wpctl status
日本語入力
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に書いてみたがうまくいくか。
- https://impsbl.hatenablog.jp/entry/AutoStartAndEnvvarsOnWayland_en#Environment-variables
- https://wiki.archlinux.org/title/Desktop_entries