From a83c6f1a7ae7d40231baba7ebd27d86f6aed3259 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 7 Apr 2018 18:05:51 +0200 Subject: [PATCH] [shell/aliases] add esp32 commands and updated mon-toggle --- bin/mon-toggle.sh | 4 ++-- shell/aliases.sh | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/mon-toggle.sh b/bin/mon-toggle.sh index 2d8dcfa..5d9b376 100755 --- a/bin/mon-toggle.sh +++ b/bin/mon-toggle.sh @@ -3,7 +3,7 @@ intern=LVDS1 extern=VGA1 if xrandr | grep "$extern disconnected"; then - xrandr --output "$extern" --off --output "$intern" --auto + xrandr --output "$extern" --off --output "$intern" --auto --primary else - xrandr --output "$intern" --auto --pos 0x150 --output "$extern" --auto --pos 1600x0 --primary --output HDMI1 --auto --output DP1 --auto + xrandr --output "$intern" --auto --pos 0x150 --primary --output "$extern" --auto --pos 1600x0 --output HDMI1 --auto --output DP1 --auto fi diff --git a/shell/aliases.sh b/shell/aliases.sh index bfdd266..48294ab 100755 --- a/shell/aliases.sh +++ b/shell/aliases.sh @@ -103,6 +103,11 @@ alias pacaur-update='pacaur -Syua' # DOTFILES: alias dotfile-update-submodules='cd ~/.dotfiles/ && git submodule foreach git pull origin master' +# ESP32: +alias esp32-flash="esptool --chip esp32 -p /dev/ttyUSB? write_flash -z 0x1000" +alias esp32-mount="mpy-fuse --port /dev/ttyUSB? --baud 115200" +alias esp32-terminal="screen /dev/ttyUSB? 115200" + # TEE: alias ttime_green="sh -c \"sleep 180 && notify-send -u critical 'The tea is ready'\" &" alias ttime_black="sh -c \"sleep 300 && notify-send -u critical 'The tea is ready'\" &"