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

5 years ago
#!/usr/bin/env zsh
5 years ago
source "$HOME/.dotfiles/shells/functions"
sitesDir="$HOME/Sites/"
5 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")"
5 years ago
siteDir="${sitesDir}${chosen}/"
5 years ago
cd "$siteDir"
theme
5 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