deviantfero / wpgtk

:flower_playing_cards: a colorscheme, wallpaper and template manager for *nix
http://deviantfero.github.io/wpgtk/
GNU General Public License v2.0
2.06k stars 48 forks source link

terminal font colour #246

Closed kleshas closed 2 years ago

kleshas commented 3 years ago

i3-gaps, and sway. If I use (cat ~/.config/wpg/sequences &) in .bashrc then the font color in kitty/alacritty stays white (backgrounds change). I have tried with templates and without. The templates update properly and the linked conf shows a non-white colour.

If I comment out the sequences line specified above, then the colours change, but only after a restart of the terminal.

Using latest wpgtk-git. wpg.conf:

set_wallpaper = true
gtk = true
active = 0
light_theme = false
editor = geany
execute_cmd = false
command = urxvt -e echo hi
backend = wal
alpha = 100
smart_sort = true
auto_adjust = true
reload = true
keywords = default
vte = false

[keywords]

Tried with VTE fix enabled and disabled.


as a secondary, more minor problem - I have the gtk template installed, and run FlatColor as the theme. Whenever I click on the file manager's (pcmanfm-gtk3 and thunar) modified column (so as to re-order by date), the title row (Name, Description, Size, Modified) doubles in height; it resets after restarting the file manager. Is this an issue with FlatColor or the gtk3 template?

deviantfero commented 3 years ago

for alacritty and kitty you need to create a template for the colors to be written to the configuration file, sequences are not fully supported on those terminals, this is part of my template:

# Configuration for Alacritty, the GPU enhanced terminal emulator.

colors:
  primary:
    background: '{color0}'
    foreground: '{color15}'
  cursor:
    text:       '{color0}'
    cursor:     '{color7}'
  normal:
    black:      '{color0}'
    red:        '{color1}'
    green:      '{color2}'
    yellow:     '{color3}'
    blue:       '{color4}'
    magenta:    '{color5}'
    cyan:       '{color6}'
    white:      '{color7}'
  bright:
    black:      '{color8}'
    red:        '{color9}'
    green:      '{color10}'
    yellow:     '{color11}'
    blue:       '{color12}'
    magenta:    '{color13}'
    cyan:       '{color14}'
    white:      '{color15}'

live_config_reload: true

for the GTK issue, I'm not sure, I use lxappearance to set FlatColor as my theme and have xsettingsd installed to reload my theme on colorscheme change, I'm not seeing the problem you report

kleshas commented 3 years ago

Thanks for the config. I'd got as far as that, but still an issue - the font color changes, but only after a reload of alacritty/kitty. It never changes if (cat ~/.config/wpg/sequences &) is active (so I leave it commented out). I tried xsettingsd, but no difference. Of course, I run sway i.e. so no surprise there. I

The title row of pcmanfm issue seems to have fixed itself - probably a reinstall / upgrade of something.

So, font colour and background colour DO change with theme change, but only when I exit and restart the terminal, and only when the sequences command is commented out in .bashrc. This isn't a real big issue, but it would be nice to know why it happens. Keep up the good work :)

deviantfero commented 2 years ago

if you're using allacritty config, don't add the (cat ~/.config/wpg/sequences) the config file and the live_config_reload should be enough