From b36cb9e64f113c097fa3ebfcd527cf8e32795c65 Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Thu, 14 Apr 2022 10:43:58 -0500 Subject: [PATCH] external monitor and ltspice --- external-monitor.sh | 9 +++++++++ ltspice-install.sh | 8 ++++++++ ltspice.sh | 3 +++ 3 files changed, 20 insertions(+) create mode 100755 external-monitor.sh create mode 100755 ltspice-install.sh create mode 100755 ltspice.sh diff --git a/external-monitor.sh b/external-monitor.sh new file mode 100755 index 0000000..35db5dc --- /dev/null +++ b/external-monitor.sh @@ -0,0 +1,9 @@ +#!/bin/sh +intern=eDP-1 +extern=DP-1 + +if xrandr | grep "$extern disconnected"; then + xrandr --output "$extern" --off --output "$intern" --auto + else + xrandr --output "$intern" --off --output "$extern" --auto +fi diff --git a/ltspice-install.sh b/ltspice-install.sh new file mode 100755 index 0000000..850c138 --- /dev/null +++ b/ltspice-install.sh @@ -0,0 +1,8 @@ +# install wine and ltspice +# sudo apt-get install wine-stable +sudo pacman -S wine +cd /tmp/ +wget https://ltspice.analog.com/software/LTspice32.exe +#wget http://ltspice.linear-tech.com/software/LTspiceIV.exe +wine LTspice32.exe +rm LTspice32.exe diff --git a/ltspice.sh b/ltspice.sh new file mode 100755 index 0000000..edd3bcf --- /dev/null +++ b/ltspice.sh @@ -0,0 +1,3 @@ +#! /usr/bin/sh + +wine ~/.wine/drive_c/Program\ Files/LTC/LTspiceXVII/XVIIx64.exe $1