gnome-terminator / terminator

multiple GNOME terminals in one window
https://gnome-terminator.org
GNU General Public License v2.0
2.07k stars 251 forks source link

Option to select "Theme variant" #72

Open hemberger opened 4 years ago

hemberger commented 4 years ago

This is a feature request. Gnome Terminal has an option to select a variant of the system theme:

image

This has been perfect for me, because I like the "Yaru Dark" theme for my terminals, but "Yaru Light" for everything else.

I realize there are ways to achieve this with CSS selectors, but I think this is a common enough preference that it warrants an easy option.


Thanks for reviving Terminator. It is my favorite terminal program! :)

mattrose commented 4 years ago

This might be an easy one for somebody to pick up.

yurenchen000 commented 1 year ago

if you just want use terminator dark theme (when system use light theme)

this wrapper script maybe rough solve the problem //tested on Ubuntu 22.04 (instead of hack css file details)

Content of dark_terminator.sh

#!/bin/bash

GTK_THEME=Yaru:dark terminator "$@" &
sleep 0.5
xprop -f _GTK_THEME_VARIANT 8u -set _GTK_THEME_VARIANT "dark" -id $(xdotool getactivewindow)

// change the theme as your favor // adjust the sleep time long enough

Usage

just run ./dark_terminator.sh instead of terminator


solution from https://askubuntu.com/a/1247895/413480 https://askubuntu.com/a/485662/413480 https://www.linuxuprising.com/2019/10/how-to-use-different-gtk-3-theme-for.html