Do not apply NVIDIA specific variables on PRIME setups
This commit is contained in:
parent
68483ba8d0
commit
57db7a8c2e
2 changed files with 9 additions and 7 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
||||||
|
tileos-settings-sway (1.0.3~tileos) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Do not apply NVIDIA specific variables on PRIME setups
|
||||||
|
|
||||||
|
-- Aleksey Samoilov <samoilov.lex@gmail.com> Tue, 14 Nov 2023 15:22:30 +0400
|
||||||
|
|
||||||
tileos-settings-sway (1.0.2~tileos) unstable; urgency=medium
|
tileos-settings-sway (1.0.2~tileos) unstable; urgency=medium
|
||||||
|
|
||||||
* Add portals config
|
* Add portals config
|
||||||
|
|
|
@ -9,12 +9,8 @@ export XDG_SESSION_TYPE=wayland
|
||||||
case "$(systemd-detect-virt)" in
|
case "$(systemd-detect-virt)" in
|
||||||
qemu)
|
qemu)
|
||||||
export WLR_RENDERER=pixman
|
export WLR_RENDERER=pixman
|
||||||
export WLR_NO_HARDWARE_CURSORS=1
|
;&
|
||||||
;;
|
qemu|kvm|oracle)
|
||||||
kvm)
|
|
||||||
export WLR_NO_HARDWARE_CURSORS=1
|
|
||||||
;;
|
|
||||||
oracle)
|
|
||||||
export WLR_NO_HARDWARE_CURSORS=1
|
export WLR_NO_HARDWARE_CURSORS=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -48,7 +44,7 @@ if [ -d "${XDG_CONFIG_HOME:-$HOME/.config}/environment.d" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if Nvidia driver installed, start Sway and send output to the journal
|
# Check if Nvidia driver installed, start Sway and send output to the journal
|
||||||
if [ -d /sys/module/nvidia ]; then
|
if [ -d /sys/module/nvidia ] && [ ! -d /sys/module/amdgpu ] && [ ! -d /sys/module/i915 ]; then
|
||||||
exec systemd-cat -- /usr/bin/sway --unsupported-gpu $@
|
exec systemd-cat -- /usr/bin/sway --unsupported-gpu $@
|
||||||
else
|
else
|
||||||
exec systemd-cat -- /usr/bin/sway $@
|
exec systemd-cat -- /usr/bin/sway $@
|
||||||
|
|
Loading…
Add table
Reference in a new issue