Merge branch 'master' of https://gitlab.com/sagev9000/dotfiles
This commit is contained in:
commit
ca2c34514d
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ "$1" == "" ]]; then
|
if [[ "$1" == "" ]]; then
|
||||||
bt list
|
bt list
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
WINDOW_NAME="active-sofi-window"
|
||||||
|
|
||||||
# Open search window or raise existing one
|
# Open search window or raise existing one
|
||||||
if [[ "$1" == "--launch" ]]; then
|
if [[ "$1" == "--launch" ]]; then
|
||||||
if existing="$(xdotool search active-sofi-window)"; then
|
if existing="$(xdotool search $WINDOW_NAME)"; then
|
||||||
xdotool windowraise "$existing"
|
xdotool windowraise "$existing"
|
||||||
else
|
else
|
||||||
xfce4-terminal --role='active-sofi-window' --hide-borders -e 'bash -c "/home/sage/.sofi.sh"'
|
xfce4-terminal --role="$WINDOW_NAME" --title="$WINDOW_NAME" --startup-id="$WINDOW_NAME" -e "bash -c '$HOME/.sofi.sh'"
|
||||||
# xterm -e 'bash -c "/home/sage/.sofi.sh"'
|
# xterm -e "bash -c '$HOME/.sofi.sh'"
|
||||||
fi
|
fi
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
@ -35,8 +37,7 @@ open_app() {
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
find $app_locations -name '*.desktop' | while read -r f; do
|
find $app_locations -name '*.desktop' | while read -r f; do
|
||||||
if grep "Name=$app" "$f" &> /dev/null; then
|
if grep "Name=$app" "$f" &> /dev/null; then
|
||||||
nohup xdg-open "$f" &> /dev/null &
|
setsid exo-open "$f" >/dev/null 2>&1 </dev/null &
|
||||||
sleep 1
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue