Vivaldi scaling on Linux
I use Google Chrome and I have "--force-device-scale-factor=1.5" in a file ~/.config/chrome-flags.conf
This way I have nicely scaled Google Chrome.
Now I want to use Vivaldi, and I'm not sure about best way to scale things.
Maybe would be not bad idea to make alias for vivaldi-stable binary to launch with this flag, but unsure. Maybe there is some sort of file like chrome-flags.conf for Vivaldi too?
P.S. Tried "User Interface Zoom" but did not work so well...
Such local file for Vivaldi parameters was suggested mid 2015 by me.
Feature request was: VB-5294 "Reading commandline parameters from user config file or environment variable"
The only way to get this is to (idea):
Patch vivaldi startup script /opt/vivaldi/vivaldi
and add some bash code to:
- Read all lines from parameter file into array variable
- push array variable into [email protected]
Thank you for reply!
Trying this solution right away ;)
You may write a own patch script to patche vivaldi script.
Why? Because every Vivaldi update you will loose the changes in vivaldi script.
If you have made such script, please share the code here.
Some Linux users not so convenient with bash scripting [not me! i am only too lazy writing bash or sh, being more a Perl dev] may be happy about your share of knowledge.
adomas.jackevicius last edited by adomas.jackevicius
Wow was really simple! For others here is my solution:
Add this line to /opt/vivaldi/vivaldi at the very bottom, but before the exec command:
if [[ -f ~/.config/vivaldi-flags.conf ]]; then VIVALDI_USER_FLAGS="$(cat ~/.config/vivaldi-flags.conf)" fi
Then edit exec line to include our new variable:
exec -a "$0" "$HERE/vivaldi"-bin $VIVALDI_USER_FLAGS "[email protected]"
...and it works! Thank you Gwen-Dragon
@adomas-jackevicius Sorry for this dimwit question, but can you pls clarify... what does this do? Is my guess correct that it would magnify the V window, & thus contents, by 1.5x ?
@steffie No, the two lines read commandline parameter/switches from a user defined file ~/.config/vivaldi-flags.conf and add the parameters while Vivaldi starts.
@gwen-dragon Oh. But the OP mentioned
& it was that which i was trying to understand.
@steffie Means that it forces the display of Vivaldi in zoomfactor of device-zoom * 1.5.
@gwen-dragon OK, & so, wouldn't that be, basically, what i asked/said before...
"it would magnify the V window, & thus contents, by 1.5x ?"
I'm not trying to argue btw, only to understand [i like to (try to) keep learning].
@steffie Yes, in your words, thats it :)
Excuse me, my explanation was too much techie. :blush:
@gwen-dragon Excellent, thank you.
Yes, you made the serious error of presuming that i was not a dope, when in reality, ich bin eine sehr grossen dummkopf :-)
@steffie All is ok. Your are not a "große Dummkopf".
I would call you without any prejudice/bad judgement: sometimes with lesser background knowlegde or sometimes a lack of attention or having not much coffee to be awaken or tired. ;)
@steffie Yes it does complete scaling of User-Interface and Contents of websites. I need this because I have 4K UHD screen which is 28" size and without scaling everything is tiny.
I edit /opt/vivaldi/vivaldi file to read another file, which is ~/.config/vivaldi-flags.conf and in this file I enter "--force-device-scale-factor=1.5" and I can add any other command line options which will be used by vivaldi ;)
Same thing would happen if I launch from command line:
@adomas-jackevicius I added your your patch to bugtracker entry.
Perhaps (some time later) it will make it into a enhanced Linux Vivaldi?
@gwen-dragon That is great! I think quite a big part of Linux users might benefit from it as HighDPi screens getting more popular with every day ;) and this is pretty easy and good solution to scale everything by editing one file... As Google Chrome and Chromium has it, why Vivaldi should not? :thumbsup_tone1:
good solution to scale everything by editing one file... As Google Chrome and Chromium has it, why Vivaldi should not?
May be because such fix works only for a vivaldi start script on Linux and not for Mac and Windows as the latter have other mechanism to start and the such code in the Vivaldi binary needs more work.
Be sure that i miss such feature in my Linux and Windows, too.