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

cage crashes with -r rotate the output 90 degrees clockwise #321

Closed
ralpheichelberger opened this issue Mar 9, 2024 · 6 comments
Closed

Comments

@ralpheichelberger
Copy link

ralpheichelberger commented Mar 9, 2024

cage version 0.1.5

there is no option -r ?? - not cool folks!

However, here is my solution for anyone who relies on changing the orientation of the screen:

services.cage = {
enable = true;
user = "kassa";
program = "${pkgs.writeScriptBin "start-cage-app" ''
#!/usr/bin/env bash
wlr-randr --output HDMI-A-1 --transform 90 # Adjust command as needed
exec ${(pkgs.chromium).outPath}/bin/chromium
''}/bin/start-cage-app";
};

@joggee-fr
Copy link
Collaborator

Indeed -r option has been removed from Cage as wlr output management protocol is now supported and allows more configurations e.g. you may apply two different transform for two outputs. So, you have to use a tool which know how to deal with this wlroots protocol such as kanshi or wlr-randr.
Apart from that, do you really observe a crash using -r option? Cage should just return an expected error for an unknown argument.

@ralpheichelberger
Copy link
Author

ralpheichelberger commented Mar 11, 2024 via email

@joggee-fr
Copy link
Collaborator

However - I can't find any alternative other than using wlr-randr.

wlr-randr is an easy way to go for your purpose. Keep it like this.

no output where provided to any logging

I don't know how NixOS work but when using -r option, Cage exits with error 1 and print some details in standard output.

@ralpheichelberger
Copy link
Author

ralpheichelberger commented Mar 11, 2024 via email

@emersion
Copy link
Contributor

The -d flag requests clients to not draw decorations.

@joggee-fr
Copy link
Collaborator

Or your application may have a fullscreen option which can be passed as argument on the command line.

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

3 participants