|
|
@ -1,16 +1,22 @@ |
|
|
|
#!/usr/bin/env zsh |
|
|
|
#!/usr/bin/env zsh |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
source "$HOME/.dotfiles/shells/functions" |
|
|
|
source "$HOME/.dotfiles/shells/functions" |
|
|
|
sitesDir="$HOME/Sites/" |
|
|
|
sitesDir="$HOME/Sites/" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chosen="$(ls -d ${sitesDir}*/ | sed "s+$sitesDir++g; s/\/$//" | rofi -dmenu -i -p "Site")" |
|
|
|
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")" |
|
|
|
|
|
|
|
|
|
|
|
siteDir="${sitesDir}${chosen}/" |
|
|
|
siteDir="${sitesDir}${chosen}/" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd "$siteDir" |
|
|
|
cd "$siteDir" |
|
|
|
|
|
|
|
|
|
|
|
theme |
|
|
|
theme |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setsid "$TERMINAL" & |
|
|
|
setsid "$TERMINAL" & |
|
|
|
setsid "$TERMINAL" & |
|
|
|
setsid "$TERMINAL" & |
|
|
|
setsid "$TERMINAL" & |
|
|
|
setsid "$TERMINAL" & |
|
|
@ -24,4 +30,6 @@ i3-msg "split horizontal" |
|
|
|
|
|
|
|
|
|
|
|
setsid "$TERMINAL" & |
|
|
|
setsid "$TERMINAL" & |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$open" = "Yes" ]; then |
|
|
|
open-local |
|
|
|
open-local |
|
|
|
|
|
|
|
fi |
|
|
|