linuxware/scripts/hyprland/start_services.sh

64 lines
1,005 B
Bash
Raw Normal View History

2023-11-05 04:53:31 -03:00
#!/bin/sh
2024-03-25 22:33:38 -03:00
#
# Make sure xdg-desktop-portal-hyprland has access to what it needs
#
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
2023-11-05 04:53:31 -03:00
#
# Start waybar.
#
waybar &
2024-03-25 22:33:38 -03:00
#
# Start xwaylandvideobridge
#
xwaylandvideobridge &
2023-11-05 04:53:31 -03:00
#
## Start wallpaper daemon and set one.
#
2024-02-28 06:48:35 -03:00
OUTPUT_1="eDP-1"
IMAGE_1="~/Pictures/wallhaven-x6p3y3.jpg"
2023-11-05 04:53:31 -03:00
function load_wallpapers() {
swww img -t any --transition-bezier 0.0,0.0,1.0,1.0 --transition-duration .8 --transition-step 255 --transition-fps 60 -o $OUTPUT_1 $IMAGE_1;
}
if ! swww query; then
swww-daemon &
2023-11-05 04:53:31 -03:00
fi
load_wallpapers &
#
# Start notification daemon.
#
mako &
#
# Refresh kdeconnect connections
#
kdeconnect-cli --refresh &
#
# Clipboard manager
#
2024-06-26 02:11:57 -03:00
wl-paste --type text --watch cliphist store &
wl-paste --type image --watch cliphist store &
2024-07-20 08:41:49 -03:00
#
# Start Fcitx5
#
fcitx5 &
2024-07-20 08:41:49 -03:00
#
# Start the blueman applet for managing bluetooth devices
#
blueman-applet &
#
# Start the brige between Proton Mail and Thunderbird
#
protonmail-bridge-gui