Is there any solution to configure termux to use system default theme instead of what i setup using termux styling app? Even a basic option to set different themes for different modes will help l, so that i can configure it to switch to zenburn when system is in Dark mode and Google light when in light mode.

You are viewing a single thread.
View all comments View context
1 point

I personally do not use shizuku because i reboot my system a lot and i do not have wifi connection to setup it again just using phone.

But this solution helps with most part of problem, i can configure bash to check time, if it is 2000 to 7000 use dark theme otherwise light theme.

If i can somehow get current system theme without root/adb, it will be better.

Anyway, thanks for help. I will use this setup for now ☺️

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
1 point

Trying various methods without adb/shizuku give:

Exception occurred while executing ‘night’:
java.lang.SecurityException: getNightModeCustomType requires MODIFY_DAY_NIGHT_MODE permission

cmd uimode gives the options but executing any options ends in error.

Anything beyond that is beyond me.

But, maybe this can help if you want to do the real programming stuff I can’t

https://stackoverflow.com/questions/44170028/android-how-to-detect-if-night-mode-is-on-when-using-appcompatdelegate-mode-ni#44170179

permalink
report
parent
reply
1 point

Another thing I think might be needed is to add a line to reload termux.properties I created an alias because the command is so long. trs=termux-reload-settings

permalink
report
parent
reply

Android

!android@lemmy.ml

Create post

A place to discuss anything related to Android or Android adjacent.


INFO:

  • No attacking others based on their phone preferences. Criticizing OEMs/devices is allowed. Attacking users because a different brand/device works for them isn’t.

  • Obvious spam will be removed.

  • Anything directly or indirectly related to Android is allowed.


Check Out Our Partner Communities:

!android@lemmy.world

Community stats

  • 60

    Monthly active users

  • 67

    Posts

  • 152

    Comments