moved autostart

This commit is contained in:
2026-03-08 23:08:46 +02:00
parent 35fe17313b
commit 01278e4351
2 changed files with 33 additions and 24 deletions

View File

@@ -53,29 +53,7 @@ $fileManager = dolphin
$menu = wofi --show drun $menu = wofi --show drun
$browser = zen-browser $browser = zen-browser
################# exec-once = ~/.config/hypr/start.sh
### AUTOSTART ###
#################
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
# exec-once = $terminal
# exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox
exec-once = ssh-agent & kdeconnect-indicator
exec-once = waybar & hyprpaper & hypridle
exec-once = systemctl --user start hyprpolkitagent
exec-once = copyq
#############################
### ENVIRONMENT VARIABLES ###
#############################
# See https://wiki.hyprland.org/Configuring/Environment-variables/
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
##################### #####################
### LOOK AND FEEL ### ### LOOK AND FEEL ###
@@ -101,7 +79,6 @@ general {
allow_tearing = false allow_tearing = false
layout = dwindle layout = dwindle
} }
cursor { cursor {

32
.config/hypr/start.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/sh
# Redirect all output to start.log (overwriting previous logs)
exec > "$HOME/start.log" 2>&1
# Function to log and time each command
run_and_time() {
echo "[$(date +'%H:%M:%S')] Starting: $1"
# /usr/bin/time -f "Took: %E" $1 &
# Note: Since most of these are backgrounded (&),
# we use a subshell to capture the duration of the launch itself.
start_time=$(date +%s%N)
"$@" &
end_time=$(date +%s%N)
# Calculate duration in milliseconds (simple shell math)
duration=$(( (end_time - start_time) / 1000000 ))
echo " -> Launched in ${duration}ms"
}
echo "--- Hyprland Startup: $(date) ---"
run_and_time qs -c nucleus-shell
# run_and_time systemctl --user start hyprpaper
# run_and_time systemctl --user start hypridle
# run_and_time systemctl --user start hyprpolkitagent
run_and_time ssh-agent
run_and_time copyq
run_and_time kdeconnect-indicator
run_and_time dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
echo "--- All processes dispatched ---"