1
0
Fork 0

tweak sunshine

This commit is contained in:
Massaki Archambault 2024-03-27 12:34:07 -04:00
parent c10b9dfbf8
commit f071cef6a0
7 changed files with 23 additions and 6 deletions

View File

@ -0,0 +1,3 @@
adapter_name = /dev/dri/by-path/pci-0000:03:00.0-render
output_name = 1
global_prep_cmd = [{"do":"sunshine-prepare","undo":"sunshine-restore"}]

View File

@ -100,6 +100,7 @@ workspace $ws7 output $output1 VGA-1
workspace $ws8 output $output1 VGA-1 workspace $ws8 output $output1 VGA-1
workspace $ws9 output $output1 VGA-1 workspace $ws9 output $output1 VGA-1
workspace $ws10 output $output1 VGA-1 workspace $ws10 output $output1 VGA-1
workspace sunshine output $output1 VGA-1
output $output1 { output $output1 {
position 0 270 position 0 270
# we need to explicitly select the mode # we need to explicitly select the mode

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
systemctl --user stop gammastep systemctl --user stop gammastep
sudo systemctl stop docker sudo systemctl stop docker.service docker.socket

View File

@ -0,0 +1,6 @@
#!/bin/bash
pkill --signal SIGUSR1 swaylock
xrandr --output DP-4 --primary
swaymsg output HDMI-A-2 disable
swaymsg workspace sunshine

View File

@ -0,0 +1,5 @@
#!/bin/bash
swaymsg output HDMI-A-2 enable
swaymsg workspace back_and_forth

View File

@ -14,15 +14,17 @@ import-gsettings() {
# list DRM device priority # list DRM device priority
# Set intel graphics as lowest priority # Set intel graphics as lowest priority
# https://github.com/swaywm/sway/wiki#i-have-a-multi-gpu-setup-like-intelnvidia-or-intelamd-and-sway-does-not-start # https://github.com/swaywm/sway/wiki#i-have-a-multi-gpu-setup-like-intelnvidia-or-intelamd-and-sway-does-not-start
export WLR_DRM_DEVICES="$(drm_info -j | jq --raw-output 'to_entries[] | [if .value.driver.desc == "Intel Graphics" then 1 else 0 end, .key] | @tsv' | awk '{printf "%s:", $2}' | sed -e 's/:$//')" export WLR_DRM_DEVICES="$(drm_info -j | jq --raw-output 'to_entries[] | [if .value.driver.desc == "Intel Graphics" then 0 else 1 end, .key] | @tsv' | sort | awk '{printf "%s:", $2}' | sed -e 's/:$//')"
# disable hardware cursor (cause mouse to stutter on my setup)
#export WLR_NO_HARDWARE_CURSORS=1
export XDG_CURRENT_DESKTOP=sway export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland export XDG_SESSION_TYPE=wayland
# Qt # Qt
#export DESKTOP_SESSION=gnome #export DESKTOP_SESSION=gnome
export QT_STYLE_OVERRIDE=gtk #export QT_STYLE_OVERRIDE=gtk
export QT_QPA_PLATFORMTHEME=gtk2 #export QT_QPA_PLATFORMTHEME=gtk2
export QT_AUTO_SCREEN_SCALE_FACTOR=0 export QT_AUTO_SCREEN_SCALE_FACTOR=0
#export QT_QPA_PLATFORM=wayland-egl #export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
@ -39,7 +41,7 @@ export ECORE_EVAS_ENGINE=wayland_egl
export ELM_ENGINE=wayland_egl export ELM_ENGINE=wayland_egl
# SDL # SDL
export SDL_VIDEODRIVER=wayland #export SDL_VIDEODRIVER=wayland
# Java # Java
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1

View File

@ -10,7 +10,7 @@ export PAGER=less
export DIFFPROG=meld export DIFFPROG=meld
# motd # motd
export MOTD_SERVICES="$MOTD_SERVICES docker.socket sshd.service" export MOTD_SERVICES="$MOTD_SERVICES docker.service sshd.service"
# java # java
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dsun.java2d.opengl=true" export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dsun.java2d.opengl=true"