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

[REQUEST] Provide a way to customize lightdm setup script #134

Open
rogueai opened this issue Sep 27, 2023 · 1 comment
Open

[REQUEST] Provide a way to customize lightdm setup script #134

rogueai opened this issue Sep 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@rogueai
Copy link

rogueai commented Sep 27, 2023

I'm using envycontrol in conjunction with lightdm, it works fine, but I'd like to customize the generated /etc/lightdm/nvidia.sh

The default script looks like this:

xrandr --setprovideroutputsource "modesetting" NVIDIA-0
xrandr --auto

However I'm using autorandr to setup monitors' layout, so having xrandr to manage it interferes with autorandr. I currently hacked together something quick and dirty by forking envycontrol to have something like this instead:

xrandr --setprovideroutputsource "modesetting" NVIDIA-0
autorandr -c

It would be nice to have a generic way to configure what to do after the modesetting bit.

Apologies if there's already a way to achieve this, I've probably missed it, and thanks for the project!

@rogueai rogueai added the enhancement New feature or request label Sep 27, 2023
@ToneyFoxxy
Copy link

ToneyFoxxy commented Nov 13, 2023

Edit the script at /usr/lib/python3.11/site-packages/envycontrol.py line 199

NVIDIA_XRANDR_SCRIPT = '''#!/bin/sh
# Automatically generated by EnvyControl

xrandr --setprovideroutputsource "{}" NVIDIA-0
xrandr --auto
'''
NVIDIA_XRANDR_SCRIPT = '''#!/bin/sh
# Automatically generated by EnvyControl

xrandr --setprovideroutputsource "{}" NVIDIA-0
autorandr -c
'''

Then edit /etc/pacman.conf line 25
#IgnorePkg =
IgnorePkg = envycontrol

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

No branches or pull requests

2 participants