mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
12 lines
425 B
Bash
Executable file
12 lines
425 B
Bash
Executable file
#!/bin/bash
|
|
STR=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]) | select(.name == "__i3_scratch")' | grep gomuksterm)
|
|
CHECK=$(swaymsg -t get_tree | grep gomuksterm)
|
|
if [ "$CHECK" == "" ]; then
|
|
exec kitty -T gomuksterm -o confirm_os_window_close=0 gomuks & sleep 1
|
|
fi
|
|
if [ "$STR" == "" ]; then
|
|
exec swaymsg '[title="gomuksterm"]' scratchpad show
|
|
else
|
|
exec swaymsg '[title="gomuksterm"]' scratchpad show
|
|
fi
|
|
exit 0
|