Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] change screen resolution like Chrome OS #9

Open
tulequ opened this issue Nov 6, 2022 · 7 comments
Open

[feature] change screen resolution like Chrome OS #9

tulequ opened this issue Nov 6, 2022 · 7 comments

Comments

@tulequ
Copy link

tulequ commented Nov 6, 2022

ChromeOS has following feature https://support.google.com/chromebook/answer/183101?hl=en

Action Hot key
Change screen resolution Shift + Ctrl and + or - (minus)
Reset screen resolution to default Shift + Ctrl + 0
Rotate screen 90 degrees Shift + Ctrl + Rotate

Actually, it change SCALE (not resolution)

Can we add command like below to set it dynamic by bind hotkeys? It will be awesome

nwg-displays set-scale +0.2
nwg-displays set-scale 1
nwg-displays transform ...

The command only effect to focused display

@nwg-piotr
Copy link
Owner

LOL, can't confirm, as my Chromebook has been running Debian for over a year. 🤣

I'm not sure if one needs nwg-displays to achieve this. Maybe just a script would be enough?

@tulequ
Copy link
Author

tulequ commented Nov 6, 2022

LOL, can't confirm, as my Chromebook has been running Debian for over a year. rofl

I have a pixelbook. I don't know what other user do, but I use that key very much

I'm not sure if one needs nwg-displays to achieve this. Maybe just a script would be enough?

sure, I can do it. It only my opinion
But I can also write a script to config display (actually I used this script about three years)

@nwg-piotr
Copy link
Owner

nwg-piotr commented Nov 6, 2022

Maybe, due to the ~/.config/sway/outputs file, it should be done here anyway. Let me get back to it in a few days, when my current work is finished.

@tulequ
Copy link
Author

tulequ commented Nov 6, 2022

Take a look when you have time :)

Sure, if I use nwg-displays, my script must edit outputs file for persistent

One more thing, in chromeos when I up/down resolution, (I think) it scale to supported resolution by display (without flickering), not by a float number

@nwg-piotr
Copy link
Owner

I use 3 full HD displays, so have no experience with scaling. Tried fractional scaling, just out of curiosity, but it didn't look well.

@tulequ
Copy link
Author

tulequ commented Nov 6, 2022

Sure, scale not always have good result
Usually, I must calc in revert, like 2560x1440 to 1600x? --> good scale = 1.25 (I based on available modes to calc it)
2560 to 1920 --> good scale = 1.33333

In nwg-displays, I see it only use linear scale
I think it should provide a list of recommend like

  • 1.2 - look like 1600x900
  • 1.5 - look like WxH

This list will be calc for each display

@nwg-piotr
Copy link
Owner

In nwg-displays, I see it only use linear scale

You may choose from linear, nearest and smart.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants