linuxware/scripts/hyprland/start_services.sh

68 lines
1.2 KiB
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 &
2024-08-13 21:58:43 -03:00
#
# Start waybar.
#
waybar &
#
# Start xwaylandvideobridge
#
xwaylandvideobridge &
2023-11-05 04:53:31 -03:00
#
## Start wallpaper daemon and set one.
#
2023-12-18 19:37:56 -03:00
OUTPUT_1="DP-2"
2024-03-15 23:39:44 -03:00
IMAGE_1="/mnt/internal/personal/wallpapers/wallhaven-z8e3wo.png"
2023-11-05 04:53:31 -03:00
2023-12-18 19:37:56 -03:00
OUTPUT_2="DP-3"
2024-03-15 23:39:44 -03:00
IMAGE_2="/mnt/internal/personal/wallpapers/wallhaven-g7ze63.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;
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_2 $IMAGE_2
}
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