z_mirror/dotfiles

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

Caleb Heuertantal: Update TV scripts to work on niri or swayd70cf02

tangere
358 B18 linesraw
1#!/bin/sh
2
3# Displays
4
5case "$XDG_CURRENT_DESKTOP" in
6    sway)
7        swaymsg output DP-3 enable
8        swaymsg output DP-4 enable
9        swaymsg output HDMI-A-2 disable
10    ;;
11    niri)
12        niri msg output DP-3 on
13        niri msg output DP-4 on
14        niri msg output HDMI-A-2 off
15    ;;
16esac
17
18ssh strawberrypi cec-ctl --playback --to 0 --standby