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