Replace wob options with ini file
As wob 0.14 get rid of arguments in favor of ini file. This hardcode a low width value cause we still cannot use percent value. We should try to find a better solutions to solve this problem ! Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
This commit is contained in:

committed by
Peter John Hartman

parent
b3c933b5d2
commit
386acc76e1
4
configs/appcfg/wob.ini
Normal file
4
configs/appcfg/wob.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
# Space to setup configversion
|
||||
anchor = top
|
||||
width = 300
|
||||
margin = 10
|
@@ -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() {
|
||||
|
@@ -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() {
|
||||
|
Reference in New Issue
Block a user