[shell/aliases] add esp32 commands and updated mon-toggle

This commit is contained in:
Felix Buehler 2018-04-07 18:05:51 +02:00
parent 6d5a313769
commit a83c6f1a7a
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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'\" &"