This alias lock the session (lightdm) and enter sleep mode
# Lock session and go to sleep
alias bye='function _bye(){ dm-tool lock; sleep 10; sudo pm-suspend;};_bye'
This alias lock the session (lightdm) and enter sleep mode
# Lock session and go to sleep
alias bye='function _bye(){ dm-tool lock; sleep 10; sudo pm-suspend;};_bye'
Make an alias in $HOME/.bash_aliases
# switch monitor mode
alias sm='function _switch_monitor(){ $HOME/switch_monitor.sh $1;};_switch_monitor'
Here is an example of xrandr settings for switching between the built-in screen and the dual screen config (built-in uses a new mode no present by default)
#!/bin/bash
// Create Github Page branch | |
git checkout -b gh-pages | |
git push origin gh-pages | |
// Update Github Page branch from master | |
git checkout gh-pages | |
git pull .master | |
git push origin gh-pages | |
git checkout master |