summaryrefslogtreecommitdiff
path: root/ar/.local
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-25 12:23:33 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-25 12:23:33 +0900
commit1b936638ecd22d7932d6f870e17b9e36a15c33ab (patch)
treeed4d3bee9f480e96b6237db165734a2e50df964e /ar/.local
parent5b2d9a270bdb3131fdcd518062e80b1df538c4ec (diff)
modified plugins/harpoon2.lua, modified plugins/keys.lua, modified bin/tmuxdbussync
Diffstat (limited to 'ar/.local')
-rwxr-xr-xar/.local/bin/tmuxdbussync18
1 files changed, 8 insertions, 10 deletions
diff --git a/ar/.local/bin/tmuxdbussync b/ar/.local/bin/tmuxdbussync
index ffebff9..10b4088 100755
--- a/ar/.local/bin/tmuxdbussync
+++ b/ar/.local/bin/tmuxdbussync
@@ -1,18 +1,16 @@
#!/bin/sh
-TMUX_DBUS="$DBUS_SESSION_BUS_ADDRESS"
-BROWSER="${BROWSER:-firefox}"
-BROWSER_NAME=$(basename "$BROWSER")
-BROWSER_PID=$(pgrep -f "$BROWSER_NAME" | head -n1)
+tmux_dbus="$DBUS_SESSION_BUS_ADDRESS"
+fcitx5_pid=$(pgrep -f fcitx5 | head -n1)
-if [ -z "$BROWSER_PID" ]; then
- echo "No browser process found matching: $BROWSER_NAME"
+if [ -z "$fcitx5_pid" ]; then
+ echo "No terminal process found matching: fcitx5"
exit 1
fi
-BROWSER_DBUS=$(tr '\0' '\n' </proc/"$BROWSER_PID"/environ | grep DBUS_SESSION_BUS_ADDRESS)
-BROWSER_DBUS="${BROWSER_DBUS#DBUS_SESSION_BUS_ADDRESS=}"
+fcitx5_dbus=$(tr '\0' '\n' </proc/"$fcitx5_pid"/environ | grep DBUS_SESSION_BUS_ADDRESS)
+fcitx5_dbus="${fcitx5_dbus#DBUS_SESSION_BUS_ADDRESS=}"
-if [ "$TMUX_DBUS" != "$BROWSER_DBUS" ]; then
- export DBUS_SESSION_BUS_ADDRESS="$BROWSER_DBUS"
+if [ "$tmux_dbus" != "$fcitx5_dbus" ]; then
+ export DBUS_SESSION_BUS_ADDRESS="$fcitx5_dbus"
fi