From 5267f2780e9f39116217b2d1026a3050cf4b4d12 Mon Sep 17 00:00:00 2001 From: hesam-init Date: Fri, 15 Mar 2024 19:00:57 +0330 Subject: [PATCH] feat: dbuslaunch added to hyprland autostart --- configs/hyprland/hypr/conf/autostart.conf | 7 ++++--- configs/hyprland/hypr/scripts/dbus-launch.sh | 3 +++ configs/zsh/.zshenv | 1 - 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100755 configs/hyprland/hypr/scripts/dbus-launch.sh diff --git a/configs/hyprland/hypr/conf/autostart.conf b/configs/hyprland/hypr/conf/autostart.conf index f71a2cd..437c53f 100644 --- a/configs/hyprland/hypr/conf/autostart.conf +++ b/configs/hyprland/hypr/conf/autostart.conf @@ -2,9 +2,10 @@ # Autostart # ----------------------------------------------------- -# core components : -exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP & -exec-once = ~/.config/hypr/scripts//keyring-launch.sh & +# background services : +exec-once = ~/.config/hypr/scripts/dbus-launch.sh & +exec-once = dbus-update-activation-environment --all & +exec-once = ~/.config/hypr/scripts/keyring-launch.sh & exec-once = sleep 1 && pipewire & exec-once = sleep 1 && /usr/bin/pipewire-pulse & exec-once = sleep 1 && /usr/bin/wireplumber & diff --git a/configs/hyprland/hypr/scripts/dbus-launch.sh b/configs/hyprland/hypr/scripts/dbus-launch.sh new file mode 100755 index 0000000..671bf35 --- /dev/null +++ b/configs/hyprland/hypr/scripts/dbus-launch.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +export $(dbus-launch) diff --git a/configs/zsh/.zshenv b/configs/zsh/.zshenv index 9537ed8..9a9743b 100644 --- a/configs/zsh/.zshenv +++ b/configs/zsh/.zshenv @@ -1,4 +1,3 @@ -export $(dbus-launch) export ZELLIJ_START=false export ZSH="$HOME/.oh-my-zsh" export OS_ID="$(grep -i -w 'ID=' /etc/os-release | awk -F= '{print $2}')"