# Execute your favorite apps at launch
exec-once = hypridle
+exec-once = ~/.config/hypr/scripts/startup.sh
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
bind = $mainmod Shift, R, exec, killall rofi || rofi -show run # rofi installed for keepassxc-browser script
bind = $mainmod, A, pseudo, # dwindle, A for Artificial
bind = $mainmod, S, swapsplit, # dwindle
+bind = $mainmod SHIFT, S, layoutmsg, preselect d # dwindle
bind = $mainmod, G, togglegroup
bind = $mainmod SHIFT, G, lockactivegroup, toggle
bind = ALT, TAB, focuscurrentorlast
fi
if [[ ! $(pidof /usr/lib64/libexec/polkit-kde-authentication-agent-1) ]]; then
+ if ! command -v /usr/lib64/libexec/polkit-kde-authentication-agent-1 &> /dev/null
+ then
+ echo "polkit-kde not installed"
+ else
/usr/lib64/libexec/polkit-kde-authentication-agent-1 &
logger 'polit-kde started'
+ fi
else
logger 'polkit-kde already running'
fi
-if [[ ! $(pidof mako) ]]; then
+if [[ ! $(pidof mako) ]];
+then
mako --config "${MAKOCONFIG}" &
logger 'mako started'
else
logger 'killed all xdg-desktop'
sleep 1
-/usr/lib64/libexec/xdg-desktop-portal-kde &
+/usr/libexec/xdg-desktop-portal-kde &
if [[ ! $(pidof xdg-desktop-portal-kde) ]]; then
- logger 'problem: xdg-desktop-portal-kde'
+ logger 'problem: xdg-desktop-portal-kde not running'
fi
sleep 1
/usr/libexec/xdg-desktop-portal-hyprland &
logger 'xdg-desktop-portal-hyprland started'
if [[ ! $(pidof xdg-desktop-portal-hyprland) ]]; then
- logger 'problem: xdg-desktop-portal-hyprland'
+ logger 'problem: xdg-desktop-portal-hyprland not running'
fi
sleep 2
/usr/libexec/xdg-desktop-portal &
if [[ ! $(pidof xdg-desktop-portal) ]]; then
- logger 'problem: xdg-desktop-portal'
+ logger 'problem: xdg-desktop-portal not running'
fi
if [[ ! $(pidof pipewire) ]]; then
"$HOME"/.config/hypr/scripts/gammarelay-autotemp.py > /dev/null 2>&1 &
fi
+killall wl-paste &
+wl-paste --type text --watch cliphist store &
+wl-paste --type image --watch cliphist store &
+logger 'clipboard manager loaded'
openrgb -p default &
logger 'openrgb default theme loaded'
kks new default & # kakoune default server
-if [[ $(pidof swww-daemon) ]]; then
- killall wl-paste
- wl-paste --type text --watch cliphist store &
- wl-paste --type image --watch cliphist store &
- logger 'clipboard manager loaded'
-fi
-
sleep 2
logger 'HYPERLAND MAIN STARTUP END'
logger '============================'