Merge pull request #1 from EndermanCo/main

push a little work.
This commit is contained in:
EndermanXD 2024-07-26 09:45:21 +00:00 committed by GitHub
commit 4261cc52c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,8 @@
[Unit]
Description=Enable Nvidia mode for envycontrol
[Service]
ExecStart=/bin/bash /etc/systemd/system/envycontrol.sh
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,7 @@
#!/bin/bash
if [[ -f "/etc/modprobe.d/nvidia.conf" ]]; then
systemctl disable envycontrol.service
else
envycontrol -s nvidia --dm sddm
fi