z_mirror/dotfiles

git clone https://git.raiguard.me/z_mirror/dotfiles

Caleb Heuertantal: Add HDMI 2.1 adapter and make scripts dynamically adjust9d7b85e

trunk
442 B20 linesraw
1#!/usr/bin/env sh
2# vim: ft=sh
3
4if [ -e /dev/cec0 ]; then
5    cec_cmd="cec-ctl"
6    output="DP-5"
7else
8    cec_cmd="ssh strawberrypi cec-ctl"
9    output="HDMI-A-2"
10fi
11
12if [ "$XDG_CURRENT_DESKTOP" = "sway" ]; then
13    swaymsg output $output enable
14elif [ "$XDG_CURRENT_DESKTOP" = "niri" ]; then
15    niri msg output $output on
16fi
17
18$cec_cmd --playback --to 0 --image-view-on
19sleep 10
20$cec_cmd --playback --to 0 --active-source phys-addr=1.0.0.0