wip
This commit is contained in:
parent
9b3171425d
commit
9117240088
6 changed files with 93 additions and 139 deletions
37
scripts/init
37
scripts/init
|
@ -16,7 +16,7 @@ kill-all() {
|
|||
done
|
||||
}
|
||||
|
||||
SCRIPTS="$HOME/.config/hypr/.scripts"
|
||||
SCRIPTS="$HOME/.config/hypr/scripts"
|
||||
|
||||
# Logging helper
|
||||
log_notify() {
|
||||
|
@ -53,16 +53,14 @@ setup-desktop() {
|
|||
|
||||
case $module in
|
||||
copyq)
|
||||
# pkill copyq 2>/dev/null
|
||||
copyq --start-server
|
||||
# sleep 1
|
||||
# if ! pgrep -x copyq >/dev/null; then
|
||||
# # log_notify "critical" "ERROR" "CopyQ failed to start. Retrying..."
|
||||
# copyq --start-server
|
||||
# fi
|
||||
if ! pgrep copyq; then
|
||||
copyq --start-server
|
||||
fi
|
||||
;;
|
||||
lxappearance)
|
||||
lxappearance >/dev/null 2>&1 &
|
||||
if ! pgrep lxappearance; then
|
||||
lxappearance >/dev/null 2>&1 &
|
||||
fi
|
||||
;;
|
||||
'nwg-look')
|
||||
nwg-look -a >/dev/null 2>&1 &
|
||||
|
@ -75,8 +73,7 @@ setup-desktop() {
|
|||
# fi
|
||||
# ;;
|
||||
redshift)
|
||||
pkill redshift 2>/dev/null
|
||||
bash -c "$SCRIPTS/redshift.sh"
|
||||
. "$SCRIPTS/redshift.sh"
|
||||
;;
|
||||
wob)
|
||||
local fifo="/tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob"
|
||||
|
@ -91,16 +88,16 @@ setup-desktop() {
|
|||
|
||||
# Start polkit authentication agent
|
||||
init-polkit() {
|
||||
agents="
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
/usr/lib/polkit-kde-authentication-agent-1
|
||||
/usr/libexec/polkit-gnome-authentication-agent-1
|
||||
/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1
|
||||
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
|
||||
/usr/lib/polkit-1/polkit-agent-helper-1
|
||||
"
|
||||
agents=(
|
||||
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
|
||||
"/usr/lib/polkit-kde-authentication-agent-1"
|
||||
"/usr/libexec/polkit-gnome-authentication-agent-1"
|
||||
"/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1"
|
||||
"/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1"
|
||||
"/usr/lib/polkit-1/polkit-agent-helper-1"
|
||||
)
|
||||
|
||||
for agent in $agents; do
|
||||
for agent in "${agents[@]}"; do
|
||||
if [ -x "$agent" ]; then
|
||||
log_notify "normal" "INFO" "Starting Polkit agent: $(basename "$agent")"
|
||||
"$agent" &
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue