torappinfo / uweb

uweb browser: minimal suckless android web browser for geeks
https://torappinfo.github.io/uweb/
Other
50 stars 1 forks source link

default to public accessible folder for configs #5

Open FONZACUS opened 3 months ago

FONZACUS commented 3 months ago

awesome browser btw, it really ignites the geek inside me. sadly with recent android changes its becoming an iphone with too many restrictions. and for my next phone, i guess ill be pure non root + custom as there are too many headaches nowadays

it would be awesome if the configs could default to somewhere easy for non root users like /internal/downloads/uweb so everything can access it (i do see a downloads/app folder, also put it under uweb/). the /data...uweb should be used for more private stuff. as a starting point, it just creates the folder and leaves it empty for us to modify it. if there exists configs in both folders, prioritize the /int/down/uweb

after playing around for a bit and resetting the data, i finally got the toybox commands to work. i feel it should be the 1st page opened (or automatically done)

https://github.com/torappinfo/uweb/blob/master/en/cmds/index.html

Banzayka commented 3 months ago

Hi,

Really awesome browser, but I'm not that experienced and to be honest, didnt understand how to configure it. Any tips how to change fonts? I read that folder with css should be created, but Termux doesnt have access to /data folder - permission denied

FONZACUS commented 3 months ago

Hi,

Really awesome browser, but I'm not that experienced and to be honest, didnt understand how to configure it. Any tips how to change fonts? I read that folder with css should be created, but Termux doesnt have access to /data folder - permission denied

in the link above select the 'tgz install::toybox...' then 'config in download' it should copy your /data/data/uweb/files to /sdcard/downloads/uweb and symlink em

thats why i opened this request in hopes of making it default

anything in /data requires either root permission or the app. linking it with downloads is much easier since any app can access it not just termux

Banzayka commented 2 months ago

@FONZACUS

Many thanks for reply, it works! But now I have another issue - created folder fonts (in downloads/uweb/fonts and downloads/uweb/files/fonts) just in case in 2 places, copied fonts there (.ttf) but advanced customization uweb does not list it, manual input also does not work, any tips?

FONZACUS commented 2 months ago

@Banzayka

sorry idk, i havent played around with fonts as its not described yet in config files. theyre prolly system only fonts. but i did manage a hacky way to do it global css night mode or default.css. it somehow doesnt work with other css files like in downloads/uweb/css/, weird. heres an example to my default.css

@import url("https://fonts.googleapis.com/css?family=Ubuntu");
*{font-family:Ubuntu!important}

the only issue is it downloads the fonts from their site 1st, after a slight delay your fonts are ready and should work just fine

Banzayka commented 2 months ago

@FONZACUS

Many thanks for your time & efforts, appreciated! However, didnt manage to get it work, for me it seems too early to use this browser at the moment