This gist aims to facilitate the switching from bash
to zsh
as our defaut shell.
We will be using oh-my-zsh with the powerful theme: Powerlevel9k. You will find all the links below.
This process applies mainly for Arch Linux, but can be setup for any other distro (in theory :)).
I'm also using Gnome Terminal and pacaur as package manager.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
bluetooth_mac="MAC Address of your bluetooth mouse. Mine is a MX Ergo" | |
if [ ! -f /usr/bin/bluetoothctl ]; then | |
sudo pacman -S bluez-utils bluez | |
fi | |
systemctl is-active --quiet bluetooth || sudo systemctl start bluetooth | |
#Uncomment if you want to turn on bluetooth everytime your system turns on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sleep 2 | |
export HOME=$2 | |
$1 & | |
sleep 5 | |
xdotool search --class "teensyduino" \ | |
windowfocus \ |