All Projects → powerman → wcwidth-icons

powerman / wcwidth-icons

Licence: LGPL-2.1 license
Support fonts with double-width icons in xterm/rxvt-unicode/zsh/vim/…

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to wcwidth-icons

tempus-themes
[Mirror] Tempus is a collection of themes for Vim, text editors, and terminal emulators that are compliant at the very least with the WCAG AA accessibility standard for colour contrast
Stars: ✭ 48 (+33.33%)
Mutual labels:  xterm, urxvt
Xresources-themes
A big (huge) collection of rxvt / xterm terminal themes
Stars: ✭ 247 (+586.11%)
Mutual labels:  xterm, urxvt
not-on-facebook-icon
𝐅 A font icon to say "I am not on facebook"
Stars: ✭ 29 (-19.44%)
Mutual labels:  font-icons
dicefont
Scalable vector graphics for dice in icon font format
Stars: ✭ 20 (-44.44%)
Mutual labels:  font-icons
vulristics
Extensible framework for analyzing publicly available information about vulnerabilities
Stars: ✭ 46 (+27.78%)
Mutual labels:  patch
go-rainbow
Golang Helper for beautiful CLI Applications
Stars: ✭ 86 (+138.89%)
Mutual labels:  xterm
rofi-fontawesome
fontawesome icon list for rofi dmenu
Stars: ✭ 58 (+61.11%)
Mutual labels:  font-icons
st-history-vim
Development of the "vim patch" and a minimalist "history patch" for the suckless simple terminal (st).
Stars: ✭ 43 (+19.44%)
Mutual labels:  patch
openredir
redirect file open operations via LD_PRELOAD
Stars: ✭ 23 (-36.11%)
Mutual labels:  ld-preload
patchify.py
A library that helps you split image into small, overlappable patches, and merge patches into original image.
Stars: ✭ 102 (+183.33%)
Mutual labels:  patch
WP-SVG-Icons-WordPress-Plugin
WPIcons Plugin (Formally WP SVG Icons) - Quickly and easily install font icons and custom SVG icons on any WordPress site.
Stars: ✭ 18 (-50%)
Mutual labels:  font-icons
dotfiles
Gnu/Linux toolbox configuration files
Stars: ✭ 23 (-36.11%)
Mutual labels:  urxvt
dotfiles
my rice dump featuring meme bash aliases, minimal slim theme with waifus, some new i3 modes and a transparent status bar with blocks scripts.
Stars: ✭ 23 (-36.11%)
Mutual labels:  urxvt
ProgramUpdater
PUF - Program Updater Framework. A library to easier the task of program updating
Stars: ✭ 14 (-61.11%)
Mutual labels:  patch
ffapi-project
A project containing all Fast Food related APIs and other things.
Stars: ✭ 21 (-41.67%)
Mutual labels:  patch
libkeepalive
LD_PRELOAD library for enabling TCP keepalive socket options
Stars: ✭ 16 (-55.56%)
Mutual labels:  ld-preload
linux-workspace
This is the greatest management of all time
Stars: ✭ 19 (-47.22%)
Mutual labels:  urxvt
Windows10Tools
Tools for Windows 10
Stars: ✭ 45 (+25%)
Mutual labels:  patch
vector-icons
Free Vector icons for Website and Mobile App
Stars: ✭ 28 (-22.22%)
Mutual labels:  font-icons
rkorova
ld_preload userland rootkit
Stars: ✭ 34 (-5.56%)
Mutual labels:  ld-preload

wcwidth-icons

Support fonts with double-width icons in xterm/rxvt-unicode/zsh/vim/…

If fonts with icons like Nerd Fonts are used with some terminals like rxvt-unicode then icons must have single-width (Nerd Fonts calls this "Mono" font, generated by Nerd Fonts Font Patcher with option --use-single-width-glyphs) to work correctly. This makes icons too small (about ¼ of normal size for most icons).

To fix this for most applications (like xterm/rxvt-unicode/zsh/…) which use libc function (like wcwidth(3) or wcswidth(3)) to get symbol width you can use provided library in LD_PRELOAD environment variable.

To fix some other applications (like vim) you may need to build these applications with extra patch, provided in patches/ directory.

Install

# Build libwcwidth-icons.so and copy it to /usr/lib/ by default.
sudo make install

Gentoo Linux

sudo layman -a powerman
sudo emerge wcwidth-icons

# Patch Vim
sudo mkdir -p /etc/portage/patches/app-editors/vim{,-core}/
sudo wget https://github.com/powerman/wcwidth-icons/raw/master/patches/vim/wcwidth-icons.patch \
    -O /etc/portage/patches/app-editors/vim/wcwidth-icons.patch
sudo cp /etc/portage/patches/app-editors/vim{,-core}/wcwidth-icons.patch
sudo emerge -1 vim vim-core

Usage

export LD_PRELOAD=/usr/lib/libwcwidth-icons.so

Then run urxvt/xterm/zsh/… using font with double-width icons.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].