You are not logged in.
Pages: 1
I've written a script to switch between my gtk configs, i.e. "sed" into my ~/.gtkrc-2.0 and ~/.config/gtk-3.0/settings.ini and change gtk theme, gtk icon theme and gtk cursor theme. The theme and icons change immediately after closing and reopening programs, but the cursor theme does change on some apps (ex. chrome, firefox), but on others it doesn't (gimp, thunar), also cursor hovering over the desktop (using feh on openbox) stays the same as well. Simple X server restart fixes it. However, as I open lxappearance (after running "sed" commands), the cursor immediately switches to the required one, the very act of just opening lxappearance has this effect. My question would be what kind of "restart/update cache" commands are hidden behind lxappearance. Sorry for being lazy to dive into its code.
The things I've also tried with no effect:
[1] adding the required theme in ~/.icons/default/index.theme and /usr/share/icons/default/index.theme:
[Icon Theme]
Name=Default
Inherits=Oxygen 14 Matrix Green[2]
sudo gtk-update-icon-cache[3]
sudo gdk-pixbuf-query-loaders --update-cache[4] running this script:
#!/usr/bin/perl
# License: Same as GTK2
use strict;
use warnings;
use Gtk2 '-init';
my $event = Gtk2::Gdk::Event->new("GDK_CLIENT_EVENT");
$event->send_event(1);
$event->window(undef);
$event->message_type(Gtk2::Gdk::Atom->intern("_GTK_READ_RCFILES", 0));
$event->data_format(8);
Gtk2::Gdk::Event->send_clientmessage_toall($event);Last edited by riddle00 (2020-02-15 19:54:40)
Vim is not just an editor (...); it is for all intents and purposes a universal design pattern. -- Jason Ryan
Offline
Hi! i'm trying to achieve the same as you, updating .gtkrc-2.0 and gtk3.0/settings.ini using sed and it works only if i open lxappearance, opening it updates the "cache" (i don't know if i should call it that way) of the theme and icons...
Did you manage to solve this issue?
Regards
Offline
Hi! i'm trying to achieve the same as you, updating .gtkrc-2.0 and gtk3.0/settings.ini using sed and it works only if i open lxappearance, opening it updates the "cache" (i don't know if i should call it that way) of the theme and icons...
Did you manage to solve this issue?
Did not really spend more time on it - for me, only cursors were not changing immediately, while theme and icons did.
There is a note in lxappearance itself about the cursors:
There is also a useful Cursor_themes page in the ArchWiki.
However, opening lxappearance does indeed change the cursors on the fly. There might perhaps be some insights when looking at its source code:
Last edited by riddle00 (2022-09-25 19:04:52)
Vim is not just an editor (...); it is for all intents and purposes a universal design pattern. -- Jason Ryan
Offline
Pages: 1