Fix swhkd dbus issues
- Remove redundant `systemctl --user import-environment` from winitrc - Add `--all` flag to `dbus-update-activation-environment` in winitrc - Stop using swhkd systemd user service which doesn't seem to work properly when running dwl in a dbus session - Add swhks and swhkd to startup script
This commit is contained in:
@@ -9042,9 +9042,8 @@ export XDG_CURRENT_DESKTOP=wlroots # Set XDG current desktop
|
||||
#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle dwl/.winitrc
|
||||
$HOME/.scripts/wayland-startup.sh --kill-startup
|
||||
|
||||
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
dbus-run-session dwl -s '$HOME/.scripts/wayland-startup.sh --startup'
|
||||
dbus-update-activation-environment --systemd --all
|
||||
exec dbus-run-session -- dwl -s '$HOME/.scripts/wayland-startup.sh --startup'
|
||||
#+END_SRC
|
||||
|
||||
*** Wayland Startup
|
||||
@@ -9057,6 +9056,8 @@ declare -a startup_array=(\
|
||||
"$HOME/.scripts/dunst.sh --on" \ # Dunst Notification Daemon
|
||||
"/usr/bin/wl-paste --type text --watch cliphist store" \ # Clipboard for Text
|
||||
"/usr/bin/wl-paste --type image --watch cliphist store" \ # Clipboard for Images
|
||||
"/usr/bin/swhks" \ # Simple Wayland HotKey Server
|
||||
"sudo /usr/bin/swhkd" \ # Simple Wayland HotKey Daemon
|
||||
# Display / Compositor Setup
|
||||
"/usr/bin/shikane" \ # Display Setup
|
||||
"$HOME/.azotebg" \ # Wallpaper
|
||||
@@ -9081,6 +9082,8 @@ declare -a kill_startup_array=(\
|
||||
"pkill kdeconnectd" \
|
||||
"$HOME/.scripts/dunst.sh --off" \
|
||||
"pkill wl-paste" \
|
||||
"pkill swhks" \
|
||||
"pkill swhkd" \
|
||||
# Display / Compositor Setup
|
||||
"pkill shikane" \
|
||||
"pkill gammastep" \
|
||||
|
@@ -6,6 +6,8 @@ declare -a startup_array=(\
|
||||
"$HOME/.scripts/dunst.sh --on" \ # Dunst Notification Daemon
|
||||
"/usr/bin/wl-paste --type text --watch cliphist store" \ # Clipboard for Text
|
||||
"/usr/bin/wl-paste --type image --watch cliphist store" \ # Clipboard for Images
|
||||
"/usr/bin/swhks" \ # Simple Wayland HotKey Server
|
||||
"sudo /usr/bin/swhkd" \ # Simple Wayland HotKey Daemon
|
||||
# Display / Compositor Setup
|
||||
"/usr/bin/shikane" \ # Display Setup
|
||||
"$HOME/.azotebg" \ # Wallpaper
|
||||
@@ -30,6 +32,8 @@ declare -a kill_startup_array=(\
|
||||
"pkill kdeconnectd" \
|
||||
"$HOME/.scripts/dunst.sh --off" \
|
||||
"pkill wl-paste" \
|
||||
"pkill swhks" \
|
||||
"pkill swhkd" \
|
||||
# Display / Compositor Setup
|
||||
"pkill shikane" \
|
||||
"pkill gammastep" \
|
||||
|
@@ -11,6 +11,5 @@ export XDG_CURRENT_DESKTOP=wlroots # Set XDG current desktop
|
||||
|
||||
$HOME/.scripts/wayland-startup.sh --kill-startup
|
||||
|
||||
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
dbus-run-session dwl -s '$HOME/.scripts/wayland-startup.sh --startup'
|
||||
dbus-update-activation-environment --systemd --all
|
||||
exec dbus-run-session -- dwl -s '$HOME/.scripts/wayland-startup.sh --startup'
|
||||
|
Reference in New Issue
Block a user