1
0
Fork 0

add sunshine

This commit is contained in:
Massaki Archambault 2023-11-08 23:06:25 -05:00
parent 19b47a2ff7
commit 2763057d77
8 changed files with 24 additions and 11 deletions

View File

@ -101,10 +101,9 @@ workspace $ws8 output $output1 VGA-1
workspace $ws9 output $output1 VGA-1
workspace $ws10 output $output1 VGA-1
output $output1 {
# we need to explicitly select the mode, otherwise
# sway will select 4k 30Hz
position 0 0
mode 2560x1440@60Hz
position 0 270
# we need to explicitly select the mode
mode 2560x1440@144Hz
adaptive_sync on
}
@ -112,13 +111,10 @@ set $output2 "Ancor Communications Inc ASUS VH238 BALMIB547836"
workspace $ws1 output $output2 eDP-1
workspace $ws2 output $output2 eDP-1
output $output2 {
position 2560 -270
position 2560 0
transform 270
}
# Disable this output for consistency when running with discrete GPU enabled
output "DP-3" disable
### Input configuration
# mod key
set $mod Mod4

View File

@ -1 +0,0 @@
/usr/lib/systemd/user/modprobed-db.service

View File

@ -1 +0,0 @@
/usr/lib/systemd/user/mpd.service

View File

@ -1 +0,0 @@
/usr/lib/systemd/user/pipewire-media-session.service

View File

@ -0,0 +1,15 @@
[Unit]
Description=Sunshine is a self-hosted game stream host for Moonlight.
StartLimitIntervalSec=500
StartLimitBurst=5
PartOf=graphical-session.target
Wants=sway-session.target
After=sway-session.target
[Service]
ExecStart=/usr/bin/sunshine
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=sway-session.target

View File

@ -0,0 +1 @@
/home/marchambault/.config/systemd/user/sunshine.service

View File

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

View File

@ -1,3 +1,5 @@
#!/bin/bash
systemctl --user start gammastep
sudo systemctl start docker