#!/bin/bash set +e # obs dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=wlroots >/dev/null 2>&1 # some env can't auto run the portal, so need this /usr/lib/xdg-desktop-portal-wlr >/dev/null 2>&1 & # xwayland dpi scale # echo "Xft.dpi: 140" | xrdb -merge #dpi缩放 # xrdb merge ~/.Xresources >/dev/null 2>&1 # dms shell # dms run >/dev/null 2>&1 & # ime input # fcitx5 --replace -d >/dev/null 2>&1 & # keep clipboard content wl-clip-persist --clipboard regular --reconnect-tries 0 >/dev/null 2>&1 & # clipboard content manager wl-paste --type text --watch cliphist store >/dev/null 2>&1 & swaybg -m full -i ~/Downloads/brandon-siu-nI7knd5sQfo-unsplash.jpg & # inhibit by audio # sway-audio-idle-inhibit >/dev/null 2>&1 & mako & # Start network and bluetooth tray applets nm-applet --indicator & blueman-applet & # Start waybar ~/.config/waybar/waybar.sh &