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

Can't change GTK theme and background #301

Open offeex opened 8 months ago

offeex commented 8 months ago

Setting wallpaper only actually changes terminal theme but does nothing for wallpaper and GTK theme.

WM: Hyprland Terminal: Alacritty Wallpaper tool: swww

I got nwg-look and pywal installed

maxihafer commented 8 months ago

Changing Wallpapers

wpgtk does not integrate with swww. I recommend a post.sh script, that executes after wpgtk has run. Example that works for me:

#!/bin/sh
swww img "$(readlink .config/wpg/.current)"

wpgtk symlinks the current wallpaper to .current so we can just read from there.

This script can be called by wpgtk itself:

[settings]
set_wallpaper = false <- disable wpgtk wallpaper management
gtk = true
active = 0
light_theme = false
editor = vim
execute_cmd = true
command = .config/wpg/post.sh  <- register custom wallpaper handler
backend = wal
alpha = 100
smart_sort = true
auto_adjust = false
reload = true
keywords = default

[keywords]

Changing GTK theme

For gtk-theme changing you need to use the wpgtk provided FlatColor theme:

wpg-install.sh -g

After installing the theme you need to configure gtk to use it:

gsettings set org.gnome.desktop.interface gtk-theme 'FlatColor'

For reloading gtk on the fly you need xsettingsd. wpgtk should normally warn you if it cannot find it.

deviantfero commented 6 months ago

thanks for the detailed support @MaxiHafer, much appreciated, just wanted to add we also have the linea-nord GTK theme now, which I think will be the default.

$ wpg-install -h
Usage :  /usr/bin/wpg-install.sh [options] [--]

  Options:
  -h   Display this message
  -v   Display script version
  -o   Install openbox templates
  -t   Install tint2 template
  -g   Install gtk template
  -G   Install linea nord gtk template
  -i   Install icon-set
  -r   Install rofi template
  -I   Install i3 template
  -p   Install polybar template
  -b   Install bspwm template
  -d   Install dunst template
  -B   Install bpytop template
  -q   Install qtile template
  -H   Specify hash of wpgtk-templates repository to use

you would use wpg-install.sh -G in case you want to try it out, I think it's better :)

image image

@offeex let us know if this works for you.