You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
583 B

6 years ago
#!/usr/bin/env zsh
6 years ago
source "$HOME/.dotfiles/shells/functions"
sitesDir="$HOME/Sites/"
6 years ago
chosen="$(ls -d ${sitesDir}*/ | sed "s+$sitesDir++g; s/\/$//" | rofi -dmenu -i -p "Site")"
open="$(echo -n "Yes\nNo" | rofi -dmenu -i -p "Open the local site")"
6 years ago
siteDir="${sitesDir}${chosen}/"
6 years ago
cd "$siteDir"
theme
6 years ago
setsid "$TERMINAL" &
setsid "$TERMINAL" &
setsid "$TERMINAL" &
sleep 1
i3-msg "move down"
i3-msg "resize shrink height"
i3-msg "resize shrink height"
i3-msg "resize shrink height"
i3-msg "split horizontal"
setsid "$TERMINAL" &
if [ "$open" = "Yes" ]; then
open-local
fi