Without delay, element tray icon doesn't appear

This commit is contained in:
Emmet 2024-05-29 20:22:40 -05:00
parent f0840a99ac
commit 0691e38add

View file

@ -50,10 +50,10 @@ in
exec-once = pypr
exec-once = ydotoold
exec-once = element-desktop --hidden
#exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent
exec-once = nm-applet
exec-once = blueman-applet
exec-once = hypr-element-start
exec-once = GOMAXPROCS=1 syncthing --no-browser
exec-once = protonmail-bridge --noninteractive
exec-once = waybar
@ -414,6 +414,10 @@ in
nwg-dock-hyprland -f -x -i 64 -nolauncher -a start -ml 8 -mr 8 -mb 8
fi
'')
(pkgs.writeScriptBin "hypr-element-start" ''
#!/usr/bin/env sh
sleep 6 && element-desktop --hidden
'')
(pkgs.writeScriptBin "hypr-element" ''
#!/bin/sh
if hyprctl clients | grep "class: Element" > /dev/null