pop-os / cosmic-epoch

Next generation Cosmic desktop environment
1.66k stars 55 forks source link

[Suggestion] Option to set custom value for scaling #327

Open onlyreportingissues opened 1 month ago

onlyreportingissues commented 1 month ago

I changed my monitor and everything looks too small with 100%, but 125% looks already too big. With a custom value I could choose something between those two though.

leucome commented 3 weeks ago

Yes, and also maybe an way to set scale for each app. Is there an environment variable to set scale already? I tried to find this information but I kinda failed to find anything.

bbb651 commented 2 weeks ago

There are some toolkit/app specific environment variables/flags/settings to override scale, but there's no general way to override it per app because the default way they get the scale value is directly from the compositor with the fractional scale protocol. Also worth noting that the protocol communicates scale as x/120 where x is an unsigned integer, so it is possible to have this range of scales between 100% and 125% if it was exposed in the settings

100.00%
100.83%
101.67%
102.50%
103.33%
104.17%
105.00%
105.83%
106.67%
107.50%
108.33%
109.17%
110.00%
110.83%
111.67%
112.50%
113.33%
114.17%
115.00%
115.83%
116.67%
117.50%
118.33%
119.17%
120.00%
120.83%
121.67%
122.50%
123.33%
124.17%
125.00%
mmstick commented 2 weeks ago

There is COSMIC_SCALE

bbb651 commented 2 weeks ago

I assume that’s either for cosmic apps or the cosmic compositor, there’s no way for the compositor to pick up an environment variable given to an application to have per app scale in a generic way