commit b36cb9e64f113c097fa3ebfcd527cf8e32795c65 Author: Gerardo Marx Date: Thu Apr 14 10:43:58 2022 -0500 external monitor and ltspice 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