Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load charset #193

Closed
szorfein opened this issue Jan 4, 2018 · 6 comments
Closed

load charset #193

szorfein opened this issue Jan 4, 2018 · 6 comments

Comments

@szorfein
Copy link

szorfein commented Jan 4, 2018

Hi, i come back to spectrwm after several years :)

but when i try to launch it on gentoo, i get theses errors:

spectrwm: Welcome to spectrwm V3.1.0 Build: 3.1.0
spectrwm: ignoring region 1366x768+0+37 - not within screen boundaries (1366x768)
which: no exec in (/home/izsha/node_modules/cordova/bin:/home/izsha/bin:/usr/lib64/node_modules:/home/izsha/AndroidStudioProjects/Android-meteor/tools:/home/izsha/AndroidStudioProjects/Android-meteor/platform-tools:/opt/oracle-jdk-bin-1.8.0.112:/usr/x86_64-pc-linux-gnu/gcc-bin/7.1.0:/usr/local/bin:/usr/bin:/bin:/opt/bin:/home/izsha/.gems/bin)
spectrwm: Unable to load charset(s):
spectrwm: ISO8859-1
spectrwm: ISO8859-1
spectrwm: ISO8859-2
spectrwm: ISO8859-3
spectrwm: ISO8859-4
spectrwm: ISO8859-5
spectrwm: KOI8-R
spectrwm: ISO8859-7
spectrwm: ISO8859-9
spectrwm: ISO8859-13
spectrwm: ISO8859-14
spectrwm: ISO8859-15
spectrwm: JISX0208.1983-0
spectrwm: KSC5601.1987-0
spectrwm: GB2312.1980-0
spectrwm: JISX0201.1976-0
spectrwm: ISO10646-1

And minimal ~/.spectrwm.conf, i improved it when i could start:

bar_enabled		= 0
region		= screen[1]:1366x768+0+37
modkey = Mod4
keyboard_mapping = ~/.config/spectrwm/spectrwm_fr.conf
program[lock]		= i3lock
program[term]		= termite
program[menu]		= exec /usr/bin/rofi -show run

thx

@LordReg
Copy link
Contributor

LordReg commented Jan 4, 2018

Hi szorfein,
The default XLFD bar_font has been problematic for some users recently. Try changing bar_font to an Xft font. e.g.:
bar_font = Terminus:pixelsize=14:antialias=true

For a display resolution of 1366x768 where you want to reserve 37px on top, region should be:
region = screen[1]:1366x731+0+37

You don't need exec when defining a spawn program:
program[menu] = /usr/bin/rofi -show run

@szorfein
Copy link
Author

szorfein commented Jan 4, 2018

good, it works ! i did well to post an issue.

Just have to set polybar and i've gone :), thx !

@LordReg LordReg closed this as completed Jan 18, 2018
@MarcusE1W
Copy link

MarcusE1W commented Mar 27, 2018

Hi
I have a very simular looking problem, however the solution described above by @LordReg does not seem to work for me.

I have this .spectrwm (for testing) as suggested. (The original does not work neither)

bar_enabled	= 0
bar_font		= Terminus:pixelsize=14:antialias=true

The font Terminus is installed.
I have also found a hint in the Archlinux wiki that the font has been renamed to xos4 Terminus.
So I tried with bar_font = xos4 Terminus:pixelsize=14:antialias=true as well.

Is there any setup that definately should work (on Archlinux) that I can test?

@szorfein What have you put exactly into your .spectrwm to solve this?

Any help would be greatly appreciated. (Currently I have to use i3 and I am not a fan ;-)

@LordReg
Copy link
Contributor

LordReg commented Mar 27, 2018

Is there any setup that definately should work (on Archlinux) that I can test?

For Arch Linux, this works for me:
bar_font = xos4 Terminus:pixelsize=14:antialias=true

Just make sure it is ~/.spectrwm.conf you are editing.

@szorfein
Copy link
Author

i post the config file to my repo.
Terminus has work but i've change with iosevka,
to find the good name, you have fc-list : $ fc-list | grep -i terminus, try with other font, it should work :)

@MarcusE1W
Copy link

MarcusE1W commented Mar 27, 2018

Hi both.
Thanks for the quick answer. I can confirm it works now for me.
Having a working example really helped.
I have updated the Wiki install section for Archlinux with this hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants