This works around https://source.puri.sm/Librem5/squeekboard/issues/151 by providing a dark style to match the dark style of the layouts.
		
			
				
	
	
		
			16 lines
		
	
	
		
			433 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			433 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
set -e
 | 
						|
 | 
						|
# Override default theme but allow selecting the replacement
 | 
						|
export GTK_THEME="Adwaita:dark"
 | 
						|
CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
 | 
						|
DIRS="${CONFIG_HOME} $(set -f; IFS=:; printf '%s\n' $XDG_CONFIG_DIRS)"
 | 
						|
for DIR in ${DIRS}; do
 | 
						|
  if cat $DIR/squeekboard/gtk_theme 2> /dev/null; then
 | 
						|
    export GTK_THEME="$(cat $DIR/squeekboard/gtk_theme 2> /dev/null)"
 | 
						|
    break;
 | 
						|
  fi;
 | 
						|
done;
 | 
						|
 | 
						|
exec @bindir@/squeekboard-real
 |