Changing theme programmatically
I use "gsettings set org.gnome.desktop.interface gtk-theme <...>" to control whether my system is light or dark mode, and while some apps work with gtk, others appear to have their own system.
That's why I'm looking for a bash command which can help me do just that for Zotero (to avoid manually having to change the theme in Settings).
# Systeminfo
alinuxchap@libertus-desktop:~/Downloads/tmp $ uname -a
Linux libertus-desktop 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux
alinuxchap@libertus-desktop:~/Downloads/tmp $
That's why I'm looking for a bash command which can help me do just that for Zotero (to avoid manually having to change the theme in Settings).
# Systeminfo
alinuxchap@libertus-desktop:~/Downloads/tmp $ uname -a
Linux libertus-desktop 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux
alinuxchap@libertus-desktop:~/Downloads/tmp $
With Zotero closed, it would be setting
browser.theme.toolbar-theme
= 0 (dark) / 1 (light) / 2 (auto) in prefs.js in the Zotero profile folder.With Zotero running, you'd have to script it (using BBT's debug-bridge, perhaps) and change that pref with
Zotero.Prefs.set('browser.theme.toolbar-theme', [value], true)
.