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 &
|
|
|
|
|
|
|
|
#
|
|
|
|
# Start authentication polkit.
|
|
|
|
#
|
|
|
|
/nix/store/$(ls -la /nix/store | rg '^d.*polkit-kde-agent.*\d$' | awk '{print $9}')/libexec/polkit-kde-authentication-agent-1 &
|
|
|
|
|
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.
|
|
|
|
#
|
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
|
2024-04-05 17:00:14 -03:00
|
|
|
swww-daemon &
|
2023-11-05 04:53:31 -03:00
|
|
|
fi
|
|
|
|
|
|
|
|
load_wallpapers &
|
|
|
|
|
|
|
|
#
|
|
|
|
# Start notification daemon.
|
|
|
|
#
|
|
|
|
mako &
|
|
|
|
|
2023-12-30 12:51:19 -03:00
|
|
|
#
|
|
|
|
# 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 the blueman applet for managing bluetooth devices
|
|
|
|
#
|
|
|
|
blueman-applet &
|