diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-01-06 19:12:29 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-01-06 19:12:29 +0800 |
commit | 6f2380babe7dcfb204937f0f734443a6c854106f (patch) | |
tree | 2eef2fe2a3a8f2610add4f3ae248919397e5a3aa | |
parent | 258b5a48933b2c34dcfb042029d477ba285071d7 (diff) | |
download | dotfiles-6f2380babe7dcfb204937f0f734443a6c854106f.tar.bz2 |
Small updates to ncmpcpp; Style adjust to fonts.conf
-rw-r--r-- | .config/fontconfig/fonts.conf | 461 | ||||
-rw-r--r-- | .i3status.conf | 76 | ||||
-rw-r--r-- | .ncmpcpp/config | 17 | ||||
-rw-r--r-- | .ncmpcpp/keys | 27 |
4 files changed, 260 insertions, 321 deletions
diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 0831205..543c78a 100644 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -1,52 +1,57 @@ -<?xml version='1.0'?> -<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> - <!-- + <!-- Weitian LI <liweitianux@gmail.com> 2014/04/06 --> - <!-- + + <!-- system wide: /etc/fonts/local.conf per-user configuration: $XDG_CONFIG_HOME/fontconfig/fonts.conf (~/.config/fontconfig/fonts.conf) --> - <!-- private font directory --> - <dir prefix="xdg">fonts</dir> - <!-- default settings: smoothed and hinted --> - <match target="font"> - <edit mode="assign" name="autohint"> - <bool>true</bool> - </edit> - <edit mode="assign" name="antialias"> - <bool>true</bool> - </edit> - <edit mode="assign" name="hinting"> - <bool>true</bool> - </edit> - <edit mode="assign" name="hintstyle"> - <const>hintmedium</const> - </edit> - <edit mode="assign" name="lcdfilter"> - <const>lcddefault</const> - </edit> - <edit mode="assign" name="rgba"> - <const>rgb</const> - </edit> - <!-- enable embedded bitmap --> - <edit mode="assign" name="embeddedbitmap"> - <bool>true</bool> - </edit> - </match> - <!-- DPI --> - <!-- + + <!-- private font directory --> + <dir prefix="xdg">fonts</dir> + + <!-- default settings: smoothed and hinted --> + <match target="font" > + <edit name="autohint" mode="assign"> + <bool>true</bool> + </edit> + <edit name="antialias" mode="assign"> + <bool>true</bool> + </edit> + <edit name="hinting" mode="assign"> + <bool>true</bool> + </edit> + <edit name="hintstyle" mode="assign"> + <const>hintmedium</const> + </edit> + <edit name="lcdfilter" mode="assign"> + <const>lcddefault</const> + </edit> + <edit name="rgba" mode="assign"> + <const>rgb</const> + </edit> + <!-- enable embedded bitmap --> + <edit name="embeddedbitmap" mode="assign"> + <bool>true</bool> + </edit> + </match> + + <!-- DPI --> + <!-- <match target="pattern"> <edit name="dpi" mode="assign"> <double>96</double> </edit> </match> --> - <!-- For point size less equal than 6: only smoothed --> - <!-- + + <!-- For point size less equal than 6: only smoothed --> + <!-- <match target="font" > <test name="size" compare="less_eq"> <double>6</double> @@ -62,220 +67,206 @@ </edit> </match> --> - <!-- font families --> - <!-- + + <!-- font families --> + <!-- Names not including any well known alias are given 'sans-serif' --> - <match target="pattern"> - <test compare="not_eq" qual="all" name="family"> - <string>sans-serif</string> - </test> - <test compare="not_eq" qual="all" name="family"> - <string>serif</string> - </test> - <test compare="not_eq" qual="all" name="family"> - <string>monospace</string> - </test> - <edit mode="append_last" name="family"> - <string>sans-serif</string> - </edit> - </match> - <!-- + <match target="pattern"> + <test qual="all" name="family" compare="not_eq"> + <string>sans-serif</string> + </test> + <test qual="all" name="family" compare="not_eq"> + <string>serif</string> + </test> + <test qual="all" name="family" compare="not_eq"> + <string>monospace</string> + </test> + <edit name="family" mode="append_last"> + <string>sans-serif</string> + </edit> + </match> + + <!-- Alias well known font names to available TrueType fonts. These substitute TrueType faces for similar Type1 faces to improve screen appearance. --> - <alias> - <family>Times</family> - <prefer> - <family>Times New Roman</family> - </prefer> - <default> - <family>serif</family> - </default> - </alias> - <alias> - <family>Helvetica</family> - <prefer> - <family>Arial</family> - </prefer> - <default> - <family>sans-serif</family> - </default> - </alias> - <alias> - <family>Courier</family> - <prefer> - <family>Courier New</family> - </prefer> - <default> - <family>monospace</family> - </default> - </alias> - <!-- + <alias> + <family>Times</family> + <prefer> + <family>Times New Roman</family> + </prefer> + <default> + <family>serif</family> + </default> + </alias> + <alias> + <family>Helvetica</family> + <prefer> + <family>Arial</family> + </prefer> + <default> + <family>sans-serif</family> + </default> + </alias> + <alias> + <family>Courier</family> + <prefer> + <family>Courier New</family> + </prefer> + <default> + <family>monospace</family> + </default> + </alias> + + <!-- The example of the requirements of OR operator; If the 'family' contains 'Courier New' OR 'Courier' add 'monospace' as the alternative --> - <match target="pattern"> - <test compare="eq" name="family"> - <string>Courier New</string> - </test> - <edit mode="prepend" name="family"> - <string>monospace</string> - </edit> - </match> - <match target="pattern"> - <test compare="eq" name="family"> - <string>Courier</string> - </test> - <edit mode="prepend" name="family"> - <string>monospace</string> - </edit> - </match> - <!-- use WenQuanYi font when serif is requested for Chinese --> - <match> - <!-- + <match target="pattern"> + <test name="family" compare="eq"> + <string>Courier New</string> + </test> + <edit name="family" mode="prepend"> + <string>monospace</string> + </edit> + </match> + <match target="pattern"> + <test name="family" compare="eq"> + <string>Courier</string> + </test> + <edit name="family" mode="prepend"> + <string>monospace</string> + </edit> + </match> + + <!-- use WenQuanYi font when serif is requested for Chinese --> + <match> + <!-- If you don't want to use WenQuanYi Zen Hei font for zh-tw etc, you can use zh-cn instead of zh. Please note, even if you set zh-cn, it still matches zh. if you don't like it, you can use compare="eq" instead of compare="contains". --> - <test compare="contains" name="lang"> - <string>zh</string> - </test> - <test name="family"> - <string>serif</string> - </test> - <edit mode="prepend" name="family"> - <string>WenQuanYi Micro Hei</string> - <string>WenQuanYi Zen Hei</string> - </edit> - </match> - <!-- font family preferences --> - <match> - <test name="family"> - <string>serif</string> - </test> - <edit mode="prepend" name="family"> - <string>DejaVu Serif</string> - <string>Liberation Serif</string> - <string>Linux Libertine</string> - <string>Linux Libertine O</string> - <string>Bitstream Vera Serif</string> - <string>Droid Serif</string> - <string>AR PL UMing CN</string> - <string>AR PL UMing TW</string> - <string>AR PL UMing HK</string> - <string>AR PL SungtiL GB</string> - </edit> - </match> - <match> - <test name="family"> - <string>sans-serif</string> - </test> - <edit mode="prepend" name="family"> - <string>DejaVu Sans</string> - <string>Liberation Sans</string> - <string>Linux Biolinum</string> - <string>Linux Biolinum O</string> - <string>Source Sans Pro</string> - <string>Droid Sans</string> - <string>WenQuanYi Micro Hei</string> - <string>WenQuanYi Zen Hei</string> - <string>Droid Sans Fallback</string> - <string>AR PL UKai CN</string> - <string>AR PL UKai TW</string> - <string>AR PL UKai HK</string> - <string>AR PL KaitiM GB</string> - <string>AR PL KaitiM Big5</string> - </edit> - </match> - <match> - <test name="family"> - <string>monospace</string> - </test> - <edit mode="prepend" name="family"> - <string>DejaVu Sans Mono</string> - <string>Liberation Mono</string> - <string>Source Code Pro</string> - <string>Inconsolata</string> - <string>Bitstream Vera Sans Mono</string> - <string>Droid Sans Mono</string> - <string>WenQuanYi Micro Hei Mono</string> - <string>WenQuanYi Zen Hei Mono</string> - </edit> - </match> - <!-- reorder the serif, sans-serif and monospace family --> - <alias> - <family>serif</family> - <prefer> - <family>DejaVu Serif</family> - <family>Liberation Serif</family> - <family>Linux Libertine</family> - <family>Linux Libertine O</family> - <family>Bitstream Vera Serif</family> - <family>Droid Serif</family> - <family>AR PL UMing CN</family> - <family>AR PL UMing TW</family> - <family>AR PL UMing HK</family> - <family>AR PL SungtiL GB</family> - </prefer> - </alias> - <alias> - <family>sans-serif</family> - <prefer> - <family>DejaVu Sans</family> - <family>Liberation Sans</family> - <family>Linux Biolinum</family> - <family>Linux Biolinum O</family> - <family>Source Sans Pro</family> - <family>Bitstream Vera Sans</family> - <family>Droid Sans</family> - <family>WenQuanYi Micro Hei</family> - <family>WenQuanYi Zen Hei</family> - <family>Droid Sans Fallback</family> - <family>AR PL UKai CN</family> - <family>AR PL UKai TW</family> - <family>AR PL UKai HK</family> - <family>AR PL KaitiM GB</family> - <family>AR PL KaitiM Big5</family> - </prefer> - </alias> - <alias> - <family>monospace</family> - <prefer> - <family>DejaVu Sans Mono</family> - <family>Liberation Mono</family> - <family>Source Code Pro</family> - <family>Inconsolata</family> - <family>Bitstream Vera Sans Mono</family> - <family>Droid Sans Mono</family> - <family>WenQuanYi Micro Hei Mono</family> - <family>WenQuanYi Zen Hei Mono</family> - </prefer> - </alias> - <!-- end reorder fonts --> - <match target="font"> - <edit mode="assign" name="rgba"> - <const>none</const> - </edit> - </match> - <match target="font"> - <edit mode="assign" name="hinting"> - <bool>true</bool> - </edit> - </match> - <match target="font"> - <edit mode="assign" name="hintstyle"> - <const>hintmedium</const> - </edit> - </match> - <match target="font"> - <edit mode="assign" name="antialias"> - <bool>true</bool> - </edit> - </match> - <dir>~/.fonts</dir> + <test name="lang" compare="contains"> + <string>zh</string> + </test> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>WenQuanYi Micro Hei</string> + <string>WenQuanYi Zen Hei</string> + </edit> + </match> + + <!-- font family preferences --> + <match> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>DejaVu Serif</string> + <string>Liberation Serif</string> + <string>Linux Libertine</string> + <string>Linux Libertine O</string> + <string>Bitstream Vera Serif</string> + <string>Droid Serif</string> + <string>AR PL UMing CN</string> + <string>AR PL UMing TW</string> + <string>AR PL UMing HK</string> + <string>AR PL SungtiL GB</string> + </edit> + </match> + <match> + <test name="family"> + <string>sans-serif</string> + </test> + <edit name="family" mode="prepend"> + <string>DejaVu Sans</string> + <string>Liberation Sans</string> + <string>Linux Biolinum</string> + <string>Linux Biolinum O</string> + <string>Source Sans Pro</string> + <string>Droid Sans</string> + <string>WenQuanYi Micro Hei</string> + <string>WenQuanYi Zen Hei</string> + <string>Droid Sans Fallback</string> + <string>AR PL UKai CN</string> + <string>AR PL UKai TW</string> + <string>AR PL UKai HK</string> + <string>AR PL KaitiM GB</string> + <string>AR PL KaitiM Big5</string> + </edit> + </match> + <match> + <test name="family"> + <string>monospace</string> + </test> + <edit name="family" mode="prepend"> + <string>DejaVu Sans Mono</string> + <string>Liberation Mono</string> + <string>Source Code Pro</string> + <string>Inconsolata</string> + <string>Bitstream Vera Sans Mono</string> + <string>Droid Sans Mono</string> + <string>WenQuanYi Micro Hei Mono</string> + <string>WenQuanYi Zen Hei Mono</string> + </edit> + </match> + + <!-- reorder the serif, sans-serif and monospace family --> + <alias> + <family>serif</family> + <prefer> + <family>DejaVu Serif</family> + <family>Liberation Serif</family> + <family>Linux Libertine</family> + <family>Linux Libertine O</family> + <family>Bitstream Vera Serif</family> + <family>Droid Serif</family> + <family>AR PL UMing CN</family> + <family>AR PL UMing TW</family> + <family>AR PL UMing HK</family> + <family>AR PL SungtiL GB</family> + </prefer> + </alias> + <alias> + <family>sans-serif</family> + <prefer> + <family>DejaVu Sans</family> + <family>Liberation Sans</family> + <family>Linux Biolinum</family> + <family>Linux Biolinum O</family> + <family>Source Sans Pro</family> + <family>Bitstream Vera Sans</family> + <family>Droid Sans</family> + <family>WenQuanYi Micro Hei</family> + <family>WenQuanYi Zen Hei</family> + <family>Droid Sans Fallback</family> + <family>AR PL UKai CN</family> + <family>AR PL UKai TW</family> + <family>AR PL UKai HK</family> + <family>AR PL KaitiM GB</family> + <family>AR PL KaitiM Big5</family> + </prefer> + </alias> + <alias> + <family>monospace</family> + <prefer> + <family>DejaVu Sans Mono</family> + <family>Liberation Mono</family> + <family>Source Code Pro</family> + <family>Inconsolata</family> + <family>Bitstream Vera Sans Mono</family> + <family>Droid Sans Mono</family> + <family>WenQuanYi Micro Hei Mono</family> + <family>WenQuanYi Zen Hei Mono</family> + </prefer> + </alias> + <!-- end reorder fonts --> + </fontconfig> diff --git a/.i3status.conf b/.i3status.conf deleted file mode 100644 index 972032b..0000000 --- a/.i3status.conf +++ /dev/null @@ -1,76 +0,0 @@ -# ~/.i3status.conf -# i3status configuration file. -# see "man i3status" for documentation. - -# It is important that this file is edited as UTF-8. -# The following line should contain a sharp s: -# ß -# If the above line is not correctly displayed, fix your editor first! - -general { - colors = true - color_good = '#88b090' - color_degraded = '#ccdc90' - color_bad = '#e89393' - interval = 3 - # output format (i3bar|dzen2|xmobar|none) - output_format = 'i3bar' -} - -order += "volume master" -#order += "ipv6" -order += "disk /" -#order += "run_watch DHCP" -#order += "run_watch VPN" -order += "wireless wlp3s0" -order += "ethernet enp0s25" -order += "battery 0" -order += "load" -order += "tztime local" - -volume master { - format = "%volume" - device = "default" - mixer = "Master" - mixer_idx = 0 -} - -wireless wlp3s0 { - #format_up = "W: (%quality at %essid) %ip" - format_up = "%essid(%ip)" - format_down = "down" -} - -ethernet enp0s25 { - # if you use %speed, i3status requires root privileges - format_up = "E: %ip" - format_down = "E: down" -} - -battery 0 { - format = "%status %percentage %remaining" -} - -run_watch DHCP { - #pidfile = "/var/run/dhclient*.pid" - pidfile = "/var/run/dhcpd*.pid" -} - -run_watch VPN { - pidfile = "/var/run/vpnc/pid" -} - -tztime local { - #format = "%Y-%m-%d %H:%M:%S" - format = "%m-%d|%H:%M" -} - -load { - format = "%1min" -} - -disk "/" { - format = "%free" -} - -# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=conf: # diff --git a/.ncmpcpp/config b/.ncmpcpp/config index 5d49d70..5d7fc69 100644 --- a/.ncmpcpp/config +++ b/.ncmpcpp/config @@ -306,8 +306,21 @@ autocenter_mode = "yes" ## be used to build 'empty' part of progressbar. ## #progressbar_look = "=>" -#progressbar_look = "■■□" -progressbar_look = "♪♪ " +progressbar_look = "▪▪▫" +#progressbar_look = "♪♪ " +#progressbar_look = "=>" +#progressbar_look = "─- " +#progressbar_look = "▒▒░" +#progressbar_look = "┅┅┄" +#progressbar_look = "─⊙┄" +#progressbar_look = "─➞─" +#progressbar_look = "─┅─" +#progressbar_look = "▪▪▪" +#progressbar_look = "───" +#progressbar_look = "▁▁▁" +#progressbar_look = "‒‒‒" +#progressbar_look = "■◣ " +#progressbar_look = "◈◆◇" # #default_place_to_search_in = "database" (database/playlist) # diff --git a/.ncmpcpp/keys b/.ncmpcpp/keys index a88498f..6e06bb4 100644 --- a/.ncmpcpp/keys +++ b/.ncmpcpp/keys @@ -1,7 +1,6 @@ -##################################################### -## this is example key configuration file, copy it ## -## to ~/.ncmpcpp/keys and set up your preferences ## -##################################################### +## +## ~/.ncmpcpp/keys +## key configuration file for ncmpcpp ## ## Tips: ## - it's possible to bind maximum two keys to a command @@ -11,10 +10,15 @@ ## Note: First bind of volume_up/down ## will be used to switch between columns. ## +## Configure ncmpcpp to have vim-like key bindings +## +## Aaron LI +## 2015-12-29 +## # -#key_up = 259 'k' +key_up = 259 'k' # -#key_down = 258 'j' +key_down = 258 'j' # #key_up_album = '[' # @@ -28,9 +32,9 @@ # #key_page_down = 338 # -#key_home = 262 +key_home = 262 'g' # -#key_end = 360 +key_end = 360 'G' # #key_space = 32 # @@ -43,8 +47,10 @@ #key_volume_down = 260 '-' # #key_prev_column = 260 +key_prev_column = 'h' # #key_next_column = 261 +key_next_column = 'l' # #key_toggle_space_mode = 't' # @@ -122,8 +128,10 @@ key_pause = 'p' #key_find_backward = '?' # #key_next_found_position = '.' +key_next_found_position = 'n' # #key_prev_found_position = ',' +key_prev_found_position = 'N' # #key_toggle_find_mode = 'w' # @@ -136,6 +144,7 @@ key_pause = 'p' #key_artist_info = 'I' # #key_lyrics = 'l' +key_lyrics = '.' # #key_reverse_selection = 'v' # @@ -150,8 +159,10 @@ key_pause = 'p' #key_crop = 'C' # #key_move_song_up = 'm' +key_move_song_up = 'K' # #key_move_song_down = 'n' +key_move_song_down = 'J' # #key_move_to = 'M' # |