diff --git a/configs/appcfg/wob.ini b/configs/appcfg/wob.ini new file mode 100644 index 0000000..0d82990 --- /dev/null +++ b/configs/appcfg/wob.ini @@ -0,0 +1,4 @@ +# Space to setup configversion +anchor = top +width = 300 +margin = 10 diff --git a/scripts/core/sxmo_migrate.sh b/scripts/core/sxmo_migrate.sh index 9e1710f..c8b02ef 100755 --- a/scripts/core/sxmo_migrate.sh +++ b/scripts/core/sxmo_migrate.sh @@ -259,6 +259,7 @@ sway() { defaultconfig "$(xdg_data_path sxmo/appcfg/foot.ini)" "$XDG_CONFIG_HOME/foot/foot.ini" 644 defaultconfig "$(xdg_data_path sxmo/appcfg/mako.conf)" "$XDG_CONFIG_HOME/mako/config" 644 defaultconfig "$(xdg_data_path sxmo/appcfg/bonsai_tree.json)" "$XDG_CONFIG_HOME/sxmo/bonsai_tree.json" 644 + defaultconfig "$(xdg_data_path sxmo/appcfg/wob.ini)" "$XDG_CONFIG_HOME/wob/wob.ini" 644 } xorg() { diff --git a/scripts/core/sxmo_wob.sh b/scripts/core/sxmo_wob.sh index 85cf312..a83befb 100755 --- a/scripts/core/sxmo_wob.sh +++ b/scripts/core/sxmo_wob.sh @@ -8,14 +8,13 @@ # shellcheck source=scripts/core/sxmo_common.sh . sxmo_common.sh -useable_width="$(swaymsg -t get_outputs -r | jq '.[] | select(.focused == true) | .rect.width')" wob_sock="$XDG_RUNTIME_DIR"/sxmo.wobsock rm -f "$wob_sock" mkfifo "$wob_sock" # By opening the socket as read-write it isn't closed after the first write # see https://unix.stackexchange.com/questions/392697 -wob -W "$((useable_width - 60))" -a top -a left -a right -M 10 <> "$wob_sock" & +wob <> "$wob_sock" & WOBPID=$! finish() {