X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=desktop-20-autostart.sh;h=03be1c58356cb5c0d063977214a6b8bc2c871560;hp=df8dab8223779968545d3e41ab9076d70653abf6;hb=79b274fcd8bfa556133ab13270e84b40aebe8468;hpb=b5152768e90016afe8ff2d55cc9f38d08396b0fc diff --git a/desktop-20-autostart.sh b/desktop-20-autostart.sh index df8dab8..03be1c5 100755 --- a/desktop-20-autostart.sh +++ b/desktop-20-autostart.sh @@ -24,7 +24,7 @@ fi xout="$(xrandr)" xe() { echo "$xout"; } -x=$(xe | grep -E '^(DisplayPort-[0123]|DVI-0|DP-[1234]|DVI-I-1) connected' | wc -l) +x=$(xe | grep -Ec '^(DisplayPort-[0123]|DVI-0|DP-[1234]|DVI-I-1) connected') if (( x > 2 )); then left=$(xe | sed -rn 's/^(DVI[^ ]+) connected .*/\1/p') dps=( $(xe | sed -rn 's/^(DP-[01234]|DisplayPort-[01234]) connected .*/\1/p') ) @@ -50,11 +50,5 @@ if isarch; then pulseaudio --start fi -/a/exe/lnf -T /p/arbtt-capture.log ~/.arbtt/capture.log -# docs say a sample rate less than 20 is probably not worth the data cost, -# but it seems pretty small to me -arbtt-capture --sample-rate=10 & - - #indicator-kdeconnect date "+%A, %B %d, %r, %S seconds" > /tmp/desktop-20-autostart-log