Add initial start-river wrapper

This commit is contained in:
Aleksey Samoilov 2023-05-22 20:50:40 +04:00
parent b039ece588
commit e153bf9621
3 changed files with 24 additions and 0 deletions

6
debian/changelog vendored
View file

@ -1,3 +1,9 @@
tileos-settings-river (0.3~tileos) unstable; urgency=medium
* Add intial start-river wrapper
-- Aleksey Samoilov <samoilov.lex@gmail.com> Mon, 22 May 2023 20:50:05 +0400
tileos-settings-river (0.2~tileos) unstable; urgency=medium
* Add Wayland env variables

View file

@ -1 +1,2 @@
/etc
/usr

17
usr/bin/start-river.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env sh
# Check if system is running in virtual machine
case "$(systemd-detect-virt)" in
qemu)
export WLR_RENDERER=pixman
export WLR_NO_HARDWARE_CURSORS=1
;;
kvm)
export WLR_NO_HARDWARE_CURSORS=1
;;
oracle)
export WLR_NO_HARDWARE_CURSORS=1
;;
esac
exec systemd-cat -- /usr/bin/river