View previous topic :: View next topic |
Author |
Message |
haukew Tux's lil' helper
Joined: 01 Dec 2006 Posts: 135 Location: Hamburg - Germany
|
Posted: Thu Jan 25, 2007 8:37 pm Post subject: [solved]osd_cat can't find fonts |
|
|
Hi!
I am following this howto: http://de.gentoo-wiki.com/Multimediatasten#xmodmap_aufsetzen
which describes the setup of multimedia-keys in gentoo. I have figured it all out and set up the keys, but i have problems with osd_cat: In the howto the comand
Code: | "echo Play BMP | /usr/bin/osd_cat -d 6 -s 1 -A center -l 1 -p bottom -o 60 -c green -f '-adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-1'" | is said to be working, but i always get the error:
Code: | ABORT: Requested font not found |
when i leave the -f '-adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-1' out it works - so how can i view the fonts osd_cat needs and modify the command so that it uses the fonts? The "default" font is a bit too small for me...
Thanks in advance, hauke _________________ http://www.MySpace.com/TheAgeOfSound - my band
Last edited by haukew on Fri Jan 26, 2007 1:10 pm; edited 1 time in total |
|
Back to top |
|
|
pianosaurus l33t
Joined: 19 Apr 2004 Posts: 944 Location: Bash$
|
Posted: Fri Jan 26, 2007 3:21 am Post subject: |
|
|
Emerge xfontsel. It can show you what fonts are available on your system.
Also, using * instead of definites will make the font designation more portable, e.g.:
-*-helvetica-bold-*-*-*-34-*-*-*-*-*-*
Begin with -*-helvetica-*-*-*-*-*-*-*-*-*-*-* to see if the font is even there.
Addendum: IIRC, the encoding at the end isn't supposed to have the iso8859- part. If you need the iso8859-1 encoding, use:
-*-helvetica-bold-*-*-*-34-*-*-*-*-*-1 _________________ PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post |
|
Back to top |
|
|
haukew Tux's lil' helper
Joined: 01 Dec 2006 Posts: 135 Location: Hamburg - Germany
|
Posted: Fri Jan 26, 2007 1:10 pm Post subject: |
|
|
thanks, i tried some with the *-*-* at the end of the command, now it workd just fine. My Play/Pause-button for example looks like this:
Code: | "dcop amarok player playPause"
c:162 + release
"echo Amarok Play/Pause | /usr/bin/osd_cat -d 1 -s 1 -A center -l 1 -p bottom -o 60 -c green -f '-*-helvetica-bold-*-*-*-34-*-*-*-*-*-*'"
c:162 |
my entire ~/.xbindkeysrc is here:
Code: | #c:234
#c:235
"dcop amarok player playPause"
c:162 + release
"echo Amarok Play/Pause | /usr/bin/osd_cat -d 1 -s 1 -A center -l 1 -p bottom -o 60 -c green -f '-*-helvetica-bold-*-*-*-34-*-*-*-*-*-*'"
c:162
"dcop amarok player stop"
c:164 + release
"echo Amarok Stop | /usr/bin/osd_cat -d 1 -s 1 -A center -l 1 -p bottom -o 60 -c green -f '-*-helvetica-bold-*-*-*-34-*-*-*-*-*-*'"
c:164
"dcop amarok player prev"
c:144 + release
"echo Amarok previous Track | /usr/bin/osd_cat -d 1 -s 1 -A center -l 1 -p bottom -o 60 -c green -f '-*-helvetica-bold-*-*-*-34-*-*-*-*-*-*'"
c:144
"dcop amarok player next"
c:153 + release
"echo Amarok next Track | /usr/bin/osd_cat -d 1 -s 1 -A center -l 1 -p bottom -o 60 -c green -f '-*-helvetica-bold-*-*-*-34-*-*-*-*-*-*'"
c:153
"amixer set Master toggle"
c:160 + release
"echo MUTE/UNMUTE | /usr/bin/osd_cat -d 1 -s 1 -A center -l 1 -p bottom -o 60 -c green -f '-*-helvetica-bold-*-*-*-34-*-*-*-*-*-*'"
c:160
"amixer sset PCM playback 10-"
c:174
"amixer sset PCM playback 10+"
c:176
"thunderbird"
c:236 + release
"echo Thunderbird-Mail | /usr/bin/osd_cat -d 1 -s 1 -A center -l 1 -p bottom -o 60 -c green -f '-*-helvetica-bold-*-*-*-34-*-*-*-*-*-*'"
c:236
"konqueror /home/hauke"
c:178 + release
"echo Home-Verzeichnis | /usr/bin/osd_cat -d 1 -s 1 -A center -l 1 -p bottom -o 60 -c green -f '-*-helvetica-bold-*-*-*-34-*-*-*-*-*-*'"
c:178
"kate"
c:161 + release
"echo kate-Texteditor | /usr/bin/osd_cat -d 1 -s 1 -A center -l 1 -p bottom -o 60 -c green -f '-*-helvetica-bold-*-*-*-34-*-*-*-*-*-*'"
c:161 |
where the keys are these: (look like these)
Code: | 234 <-
240 X
162 play/pause
164 stop
144 fb
153 ff
160 mute
174 sound lower
176 sound louder
236 mail
178 home
161 kate |
I suppose the "X" and "<-" are meant to be used with a browser, but i rather use the mouse for that. _________________ http://www.MySpace.com/TheAgeOfSound - my band |
|
Back to top |
|
|
pianosaurus l33t
Joined: 19 Apr 2004 Posts: 944 Location: Bash$
|
Posted: Fri Jan 26, 2007 1:21 pm Post subject: |
|
|
I use something similar, but I sue Amarok's own OSD. It looks much better. I use osd_cat for notifications from ACPI though (such as low battery, change in AC state etc). I've found it is more practical to run an instance of osd_cat when X starts, and just leave it running, following a file (like tail -f does). Whenever I want something on the OSD I just append it to the end of the file (echo Something >> file). That way, OSD text won't overlap when several notifications come at once. _________________ PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post |
|
Back to top |
|
|
|