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

Background is white and can't be changed #146

Closed
maxigaz opened this issue Nov 6, 2019 · 3 comments
Closed

Background is white and can't be changed #146

maxigaz opened this issue Nov 6, 2019 · 3 comments

Comments

@maxigaz
Copy link

maxigaz commented Nov 6, 2019

I've tried both ly 0.4.0 and the latest git version (installed from the AUR packages ly and ly-git, respectively) under Manjaro Linux + i3 and Sway. In both cases, the background is almost always white, although the line bg=0 is commented out in /etc/ly/config.ini (which should default to black, I assume?). This makes the text somewhat hard to read.

I’ve tried uncommenting that line and I get the same results.

Also, I’ve found an example of setting the background and foreground in #80, but from my understanding, it is mentioned there that this option wouldn't work under tty. I don’t know if the situation has changed since then and if it has, what format/value is accepted in the current version.

@takagiy
Copy link

takagiy commented Apr 25, 2020

I hit the similar situation; In my case the bg and the fg were always black and white respectively and config did not seem to affect. I don't know what I'm missing, but I found a workaround finally.
I edited the /lib/systemd/system/ly.service appending a ExecStartPre line to modify tty's color palette.

[Unit]
Description=TUI display manager
After=systemd-user-sessions.service plymouth-quit-wait.service
After=getty@tty2.service

[Service]
Type=idle
ExecStartPre=/usr/bin/printf '%%b' '\e]P0FFC5C4\e]P7FFFFFF\ec'
ExecStart=/usr/bin/ly
StandardInput=tty
TTYPath=/dev/tty2
TTYReset=yes
TTYVHangup=yes

[Install]
Alias=display-manager.service

The above example sets color0(bg) to #FFC5C4 and color7(fg) to #FFFFFF.

@takagiy
Copy link

takagiy commented May 24, 2020

I found that term_reset_cmd in /etc/ly/config.ini also has to be modified to keep the colors after logging-in and while in second time login screen after logging-out again.

term_reset_cmd = /usr/bin/tput reset; /usr/bin/printf '%b' '\e]P7F1E9C7\e]P0090602\ec'

@hiukky
Copy link

hiukky commented Aug 29, 2020

@takagiy I tried the steps of your answer but I didn’t succeed here :/

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

4 participants