Last active
May 12, 2019 07:04
-
-
Save aiwas/a18cd68a1a35fe64863b3e7f5c186ebf to your computer and use it in GitHub Desktop.
urxvt をいい感じで起動するやつ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# run-urxvt | |
# Run rxvt-unicode with many options by daemon-client mode | |
# original: http://malkalech.com/urxvt_terminal_emulator | |
opts=( | |
# 一般設定 | |
-geometry 120x40 # 画面サイズ | |
-sr # スクロールバーを右側に移動 (scrollBar_right) | |
-st # スクロールバーの背景を隠す (scrollBar_floating) | |
-sbt 10 # スクロールバーの太さ | |
-scrollstyle plain # スクロールバーのスタイル (scrollstyle) | |
#-bc # カーソルを点滅させる (cursorBlink) | |
#-uc # カーソルを下線タイプに変更 (cursorUnderline) | |
-pointerBlank # キー入力中はマウスポインタを消す (pointerBlank) | |
-vb # ブザー音を視覚エフェクトで代替する (visualBell) | |
-sl 5000 # 保存するヒストリ (saveLines) | |
-fade 45 # 非アクティブ時に画面を暗くする (fading) | |
# フォント設定 | |
-fn 'xft:Cica-11' | |
#-fn 'xft:Cica:bold:size=11' # X FreeType の場合、'<family>-<size>' でも指定できる | |
-letsp 0 # 文字間隔 (letterSpace) | |
-lsp 4 # 行間隔 (lineSpace) | |
# カラースキーム | |
-depth 32 # 色のビット数? | |
-color0 '[90]#03073c' # Black | |
-color1 '[90]#c6004a' # Red | |
-color2 '[90]#acf157' # Green | |
-color3 '[90]#fecd5e' # Yellow | |
-color4 '[90]#525fb8' # Blue | |
-color5 '[90]#986f82' # Magenta | |
-color6 '[90]#968763' # Cyan | |
-color7 '[90]#ecf0fc' # White | |
-color8 '[90]#6c5b30' # Bright Black | |
-color9 '[90]#da4b8a' # Bright Red | |
-color10 '[90]#dbffa9' # Bright Green | |
-color11 '[90]#fee6a9' # Bright Yellow | |
-color12 '[90]#b2befa' # Bright Blue | |
-color13 '[90]#fda5cd' # Bright Magenta | |
-color14 '[90]#a5bd86' # Bright Cyan | |
-color15 '[90]#f6ffec' # Bright White | |
-fg '[90]#ecf0fe' # 文字色 | |
-bg '[90]#232537' # 背景色 | |
-scrollColor '[90]#373a56' # スクロールバーの色 | |
#-troughColor '[90]#232537' # スクロールバーの背景の色 | |
"$@" | |
) | |
urxvtc "${opts[@]}" >/dev/null 2>&1 || { | |
[ "$?" -eq 2 ] && urxvtd -q -o -f && urxvtc "${opts[@]}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment