The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Quickswitch.py font is tiny

asked 2013-12-11 17:29:04 +0000

oldos2er gravatar image

Using quickswitch.py 2.0 with i3 and dmenu, it works just fine but the font is tiny. Any way to enlarge it?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-12-11 20:32:59 +0000

joepd gravatar image

updated 2013-12-11 20:39:37 +0000

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')
edit flag offensive delete link more

Comments

Thank you, I will give that a try. I did change the dmenu font not long after I first began using i3, but I don't remember now how I did it. quickswitcher.py is not using the same font.

oldos2er gravatar imageoldos2er ( 2013-12-11 20:41:08 +0000 )edit

I'd upvote you, joepd, but it seems I don't have enough karma.

oldos2er gravatar imageoldos2er ( 2013-12-11 22:40:09 +0000 )edit
0

answered 2013-12-11 21:50:29 +0000

oldos2er gravatar image

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!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-12-11 17:29:04 +0000

Seen: 190 times

Last updated: Dec 11 '13