aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-06-23 19:26:48 +0200
committersrdusr <trevorgray@srdusr.com>2024-06-23 19:26:48 +0200
commit380443a9c67e28d16dfc33fb4838b1412db61f9c (patch)
treedaade4a54d712764e260980c9346af3c0633af21
parentfcae0ce8f6e6936cca6469145c4f68aa1f77e44f (diff)
downloaddotfiles-380443a9c67e28d16dfc33fb4838b1412db61f9c.tar.gz
dotfiles-380443a9c67e28d16dfc33fb4838b1412db61f9c.zip
Testing
-rw-r--r--.profile8
1 files changed, 5 insertions, 3 deletions
diff --git a/.profile b/.profile
index 874b6be..b4379f1 100644
--- a/.profile
+++ b/.profile
@@ -36,7 +36,8 @@ display() {
#session="exec bspwm -name login"
;;
Hyprland | sway)
- session="exec $session"
+ #session="exec $session"
+ session="dbus-run-session $session"
;;
*)
echo "Session $session is not supported."
@@ -58,7 +59,8 @@ display() {
break
;;
Hyprland | sway)
- session="exec $wm"
+ #session="exec $wm"
+ session="dbus-run-session $wm"
break
;;
esac
@@ -88,7 +90,7 @@ zsh() {
# GnuPG
gnupg() {
- if ! systemctl --quiet --user is-active gpg-agent.socket && command -v gpg-agent >/dev/null 2>&1; then
+ if ! pgrep -x "gpg-agent" >/dev/null 2>&1 && command -v gpg-agent >/dev/null 2>&1; then
echo 'Launching GPG agent...'
eval "$(gpg-agent --daemon)"
fi