その他の設定 for Arch Linux
-
-
Save 10sr/8949566 to your computer and use it in GitHub Desktop.
General Recommendations - ArchWiki
https://wiki.archlinux.org/index.php/Users_and_Groups
# useradd -m -g [initial_group] -G [additional_groups] -s [login_shell] [username]
# gpasswd -a [username] [group]
laptop-mode tools の代わりに使ってみることにした。
acpid は古いらしい。
/etc/systemd/logind.conf に電源ボタンとかの設定がある。
電源ボタンで hibernate 、蓋を閉じるとサスペンドにする。
systemctl suspend, とか使える。 systemctl hibernate はなんだか失敗した。 swap がないから
結局したこととしては、 /etc/fstab
で ext4 のエントリに discard を加えた。
始めは有効になってない。
# systemctl start cronie
# systemctl enable cronie
Fonts - ArchWiki, Keyboard Configuration in Console - ArchWiki
フォントのあるディレクトリは /usr/share/kbd/consolefont 。 setfont を使ってフォントを試せる。 LatGrkCyr-8x16 を使うので、 /etc/vconsole.conf に FONT=LatGrkCyr-8x16 を追加。
画面が砂嵐になって失敗してる。
# fallocate -l 4G /swapfile_4g
# chmod 600 /swapfile_4g
# mkswap /swapfile_4g
# swapon /swapfile_4g
# vi /etc/fstab
## /swapfile_4g none swap defaults 0 0
Suspend and Hibernate - ArchWiki
# vi /boot/refind_linux.conf
## "Boot with standsard options" に
## resume=/dev/disk/by-uuid/<uuid for />
## resume=offset=<swap file offset>
## を追加する。
## オフセットは、 filefrag -v /swapfile_4g 実行して physical_offset の始めの値にする。
# vi /etc/mkinitcpio.conf
## HOOKS に resume を追加する。
# mkinitcpio -p linux
必要なものを入れる。
# pacman -S fcitx-im fcitx-mozc fcitx-gtk2 fcitx-configtool
~/.xinitrc に以下を追加
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
fcitx
英数、かなのキーがわからなかったので fcitx-configtool を使う。入力してみたところ、 Hangul と Hangulhanja に見えるらしい。 拡張オプションの表示にチェックをして、入力メソッドのオン、オフにそれぞれ指定する。
まず、 notification server が必要。
とりあえず、 xfce4-notifyd を使ってみる。設定は xfce4-notifyd-config 。
- lxappearance
- obconf
今の状態: https://gist.github.com/10sr/2101119 https://gist.github.com/10sr/1998681
ファイルを xdg からコピーする
$ cp -R /etc/xdg/openbox/* ~/.config/openbox
デフォルトの設定では、 rc.xml から、右クリックは root-menu を表示する。 menu.xml を見ると、 root-menu は一番下で定義されていて、それぞれ上で定義された id のメニューを表示する。
menu.xml に <menu id="xdg-menu" label="Openbox 3" execute="xdg_menu --format openbox3-pipe" />
を追加する。
-
方針
- A + : デスクトップ移動
- Win + : ランチャ
- Win + z: システム的なメニュー
- Win + x: アプリケーションメニュー
- gsimplecal
- volumeicon
- nm-applet (network-manager-applet)
[synapse}(https://launchpad.net/synapse-project) を使ってみることにした。
他の候補:
- kupfer
- gmrun
- dmenu
- gvfs 入れるとゴミ箱とか使えるようになる。
~/.config/user-dirs.dirs
を書き換えて全部 .xdg-dirs
以下に作るようにする。
https://wiki.archlinux.org/index.php/CUPS
ネットワーク接続されたプリンタを使う。
- cups, ghostscript, gsfonts をインストールする
- PPD ファイルをダウンロードする。今回 PKGBUILD を作った。 (NOTE: updpkgsums でチェックサムを更新できる)
- サービスを有効にする。
# systemctl start cups.service
# systemctl enable cups.service
- http://localhost:631/ にアクセスする。
- 追加する。確か、「インターネット印刷プロトコル (http) 」で
socket://xxx.xxx.xxx.xxx:9100
を使った。
MacBook のタッチパッドは右クリックができない。2本指とか使うとできるらしいが不安定すぎるので採用しない(そもそもタップによるクリックは OFF にしてある)。 何か確実に右クリックを発行できるような設定をしたい。
Add file named /etc/sysctl.d/90-mac_mouse.conf
and add these lines:
dev.mac_hid.mouse_button_emulation = 1
dev.mac_hid.mouse_button3_keycode = 126
The keycode 126
can be get by showkey
command.
2本指クリックで右クリックになる。
右下のクリックで右クリックにする?
$ synclient RBCornerButton=3
xkbset が見つからない…