Add NeoNet Yabasic networking FFI library, fix fcitx5 service and WM context menus, install yabasic-doc and mandoc
This commit is contained in:
1 parent
fb3723fab4
commit
726500085a
33 files changed
+2617
-69
No files matched your search
@@ -7,6 +7,19 @@
|
||||
# shellcheck source=scripts/core/sxmo_common.sh
|
||||
. sxmo_common.sh
|
||||
|
||||
export DISPLAY="${DISPLAY:-:0}"
|
||||
export SXMO_WM="${SXMO_WM:-dwm}"
|
||||
|
||||
_dwm_prep() {
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
export DISPLAY=:0
|
||||
fi
|
||||
if [ -e /tmp/dwm_plugin_dmenu.active ] && [ -p /tmp/dwm_plugin_dmenu.fifo ]; then
|
||||
printf "CLOSE\n" > /tmp/dwm_plugin_dmenu.fifo 2>/dev/null || true
|
||||
sleep 0.04
|
||||
fi
|
||||
}
|
||||
|
||||
swi3msg() {
|
||||
case "$SXMO_WM" in
|
||||
sway) swaymsg "$@" ;;
|
||||
@@ -328,10 +341,8 @@ swi3togglelayout() {
|
||||
}
|
||||
|
||||
dwmtogglelayout() {
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
export DISPLAY=:0
|
||||
fi
|
||||
xdotool key --clearmodifiers key Super+space
|
||||
_dwm_prep
|
||||
xdotool key --clearmodifiers Super+space
|
||||
}
|
||||
|
||||
rivertogglelayout() {
|
||||
@@ -349,9 +360,7 @@ swayswitchfocus() {
|
||||
}
|
||||
|
||||
dwmswitchfocus() {
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
export DISPLAY=:0
|
||||
fi
|
||||
_dwm_prep
|
||||
xdotool key --clearmodifiers Super+x
|
||||
}
|
||||
# }}}
|
||||
@@ -392,9 +401,7 @@ rivernextworkspace() {
|
||||
}
|
||||
|
||||
dwmnextworkspace() {
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
export DISPLAY=:0
|
||||
fi
|
||||
_dwm_prep
|
||||
xdotool key --clearmodifiers Super+Shift+r
|
||||
}
|
||||
|
||||
@@ -403,9 +410,7 @@ swi3previousworkspace() {
|
||||
}
|
||||
|
||||
dwmpreviousworkspace() {
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
export DISPLAY=:0
|
||||
fi
|
||||
_dwm_prep
|
||||
xdotool key --clearmodifiers Super+Shift+e
|
||||
}
|
||||
|
||||
@@ -418,9 +423,7 @@ swi3movenextworkspace() {
|
||||
}
|
||||
|
||||
dwmmovenextworkspace() {
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
export DISPLAY=:0
|
||||
fi
|
||||
_dwm_prep
|
||||
xdotool key --clearmodifiers Super+r
|
||||
}
|
||||
|
||||
@@ -429,9 +432,7 @@ swi3movepreviousworkspace() {
|
||||
}
|
||||
|
||||
dwmmovepreviousworkspace() {
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
export DISPLAY=:0
|
||||
fi
|
||||
_dwm_prep
|
||||
xdotool key --clearmodifiers Super+e
|
||||
}
|
||||
|
||||
@@ -445,9 +446,7 @@ riverworkspace() {
|
||||
}
|
||||
|
||||
dwmworkspace() {
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
export DISPLAY=:0
|
||||
fi
|
||||
_dwm_prep
|
||||
xdotool key --clearmodifiers "Super+$1"
|
||||
}
|
||||
|
||||
@@ -461,9 +460,7 @@ rivermoveworkspace() {
|
||||
}
|
||||
|
||||
dwmmoveworkspace() {
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
export DISPLAY=:0
|
||||
fi
|
||||
_dwm_prep
|
||||
xdotool key --clearmodifiers "Super+shift+$1"
|
||||
}
|
||||
# }}}
|
||||
|
||||
Reference in new issue
Block a user