44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# Screen Sharing with OBS Studio on Fedora and Sway
|
||
|
# ref: https://github.com/hw0lff/screen-share-sway
|
||
|
|
||
|
grep -q "alias obs" ~/.zshrc || echo 'alias obs="QT_QPA_PLATFORM=xcb obs"' >> ~/.zshrc
|
||
|
|
||
|
cd ~/utils
|
||
|
|
||
|
dotfiles/bin/v4l2pls 0.12.5
|
||
|
|
||
|
# ref: https://github.com/obsproject/obs-studio/wiki/Install-Instructions#red-hatfedora-based-build-directions
|
||
|
git clone --recursive https://github.com/obsproject/obs-studio.git
|
||
|
cd ~/utils/obs-studio
|
||
|
git pull
|
||
|
git submodule update --recursive
|
||
|
mkdir -pv build && cd build
|
||
|
cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
|
||
|
make -j4
|
||
|
sudo make install
|
||
|
|
||
|
|
||
|
cd ~/utils
|
||
|
|
||
|
git clone https://github.com/CatxFish/obs-v4l2sink.git
|
||
|
cd obs-v4l2sink
|
||
|
git pull
|
||
|
|
||
|
mkdir -pv build && cd build
|
||
|
cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=~/.local ..
|
||
|
make -j4
|
||
|
make install
|
||
|
cd ~/utils/obs-v4l2sink
|
||
|
|
||
|
cd ~/utils
|
||
|
|
||
|
hg clone https://hg.sr.ht/~scoopta/wlrobs
|
||
|
cd wlrobs
|
||
|
hg pull
|
||
|
meson build
|
||
|
ninja -C build
|
||
|
mkdir -pv ~/.config/obs-studio/plugins/wlrobs/bin/64bit
|
||
|
cp -v build/libwlrobs.so ~/.config/obs-studio/plugins/wlrobs/bin/64bit
|