Quickswitch.py font is tiny
Using quickswitch.py 2.0 with i3 and dmenu, it works just fine but the font is tiny. Any way to enlarge it?
Using quickswitch.py 2.0 with i3 and dmenu, it works just fine but the font is tiny. Any way to enlarge it?
You need to tell dmenu
which font to use, which goes with the -fn
-switch. dmenu normally accepts only the core X fonts. There is a patch that allows you to Xft-fonts, but you might need to apply the patch yourself and compile dmenu.
If you are not having Xft support, this is what the result could look like:
echo 'test1\ntest2' | dmenu -fn '-*-terminus-*-*-*-*-22-*-*-*-*-*-*-*'
The most easy way to get such a funny font string is by using xfontsel
.
I have not toyed with quickswitch.py myself, but from a first glance, you should add the -fn <funny string>
in the default
part of the following line:
parser.add_argument('-d', '--dmenu', default='dmenu -b -i -l 20', help='dmenu command, executed within a shell')
I got it to work. For the record, I changed the line
parser.add_argument('-d', '--dmenu', default='dmenu -b -i -l 20', help='dmenu command, executed within a shell')
to
parser.add_argument('-d', '--dmenu', default='dmenu -b -i -l 20 -fn --terminus-----20-------', help='dmenu command, executed within a shell')
Thanks for your help!
Asked: 2013-12-11 17:29:04 +0000
Seen: 190 times
Last updated: Dec 11 '13