aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rwxr-xr-xsway/init.sh6
-rwxr-xr-xsway/terminal.sh8
2 files changed, 10 insertions, 4 deletions
diff --git a/sway/init.sh b/sway/init.sh
index 95d2063..d0c5e49 100755
--- a/sway/init.sh
+++ b/sway/init.sh
@@ -22,6 +22,12 @@ if command -v systemctl > /dev/null; then
systemctl --user restart xdg-desktop-portal
systemctl --user restart xdg-desktop-portal-wlr
systemctl --user restart plasma-kactivitymanagerd
+else
+ dbus-update-activation-environment WAYLAND_DISPLAY \
+ XDG_CURRENT_DESKTOP
+
+ /usr/libexec/pipewire-launcher &
+ /usr/libexec/xdg-desktop-portal-wlr &
fi
~/.config/sway/swayidle.sh &
diff --git a/sway/terminal.sh b/sway/terminal.sh
index 25559c3..3929f82 100755
--- a/sway/terminal.sh
+++ b/sway/terminal.sh
@@ -18,9 +18,9 @@ else
if ! (swaymsg -t get_tree -r |
jq -e "recurse(.nodes[]) | select(.app_id == \"$term_app_id\")" > /dev/null); then
- exec alacritty --class $term_app_id -e \
- tmux new-session -A -s default
- # exec foot --app-id $term_app_id \
- # tmux new-session -A -s default
+ # exec alacritty --class $term_app_id -e \
+ # tmux new-session -A -s default
+ exec foot --app-id $term_app_id \
+ tmux new-session -A -s default
fi
fi