#!/usr/bin/env sh # vim: ft=sh if [ -e /dev/cec0 ]; then cec_cmd="cec-ctl" output="DP-5" else cec_cmd="ssh strawberrypi cec-ctl" output="HDMI-A-2" fi if [ "$XDG_CURRENT_DESKTOP" = "sway" ]; then swaymsg output $output enable elif [ "$XDG_CURRENT_DESKTOP" = "niri" ]; then niri msg output $output on fi $cec_cmd --playback --to 0 --image-view-on sleep 10 $cec_cmd --playback --to 0 --active-source phys-addr=1.0.0.0