diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-06-23 19:26:48 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-06-23 19:26:48 +0200 |
| commit | 380443a9c67e28d16dfc33fb4838b1412db61f9c (patch) | |
| tree | daade4a54d712764e260980c9346af3c0633af21 | |
| parent | fcae0ce8f6e6936cca6469145c4f68aa1f77e44f (diff) | |
| download | dotfiles-380443a9c67e28d16dfc33fb4838b1412db61f9c.tar.gz dotfiles-380443a9c67e28d16dfc33fb4838b1412db61f9c.zip | |
Testing
| -rw-r--r-- | .profile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |
