Giter Club home page Giter Club logo

Comments (8)

joggee-fr avatar joggee-fr commented on July 20, 2024 1

@samuelexferri, do you consider this issue resolved now?

from cage.

joggee-fr avatar joggee-fr commented on July 20, 2024

Debian manpages give some hints on how to use wlr-randr. If some Wayland environment variable are well set (especially WAYLAND_DISPLAY), you can just use wlr-randr with no parameter to know which mode / resolution is currently used for your monitor. Then, it is quite easy to modify it looking at manpages.

from cage.

bhack avatar bhack commented on July 20, 2024

Is it supposed to be run with another service after the cage service?

from cage.

joggee-fr avatar joggee-fr commented on July 20, 2024

@bhack, wlr-randr is a utility you can use manually and I don't think it is supposed to be used as a service. It communicates with the Wayland compositor, here Cage, through a well-defined protocol wlr output management.

On the other side, kanshi is a daemon to manage your preferred configurations according to plugged monitors for example. But I am not a user of this tool (right now).

from cage.

bhack avatar bhack commented on July 20, 2024

Ok so if we want to autoconfigure at the boot we need to investigate that daemon.

from cage.

MayNiklas avatar MayNiklas commented on July 20, 2024

@samuelexferri I'm trying to solve the same issue.
Setting WAYLAND_DISPLAY="wayland-1 wlr-randr --output HDMI-A-1 --transform 90" does not work for me.
Can you maybe share your solution?

from cage.

joggee-fr avatar joggee-fr commented on July 20, 2024

@MayNiklas, don't you have a double quote issue in your command?

from cage.

MayNiklas avatar MayNiklas commented on July 20, 2024

@MayNiklas, don't you have a double quote issue in your command?

Sorry, this was a issue on my side when copying from my NixOS configuration.
I'm setting environment variables using the Nix language.

WAYLAND_DISPLAY = "wayland-1 ${pkgs.wlr-randr}/bin/wlr-randr --output HDMI-A-1 --transform 90";

is getting translated into the regular syntax.

from cage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.