Import variables last
This commit is contained in:
parent
e6f27aa084
commit
3c27bb2d26
1 changed files with 9 additions and 9 deletions
|
@ -1,14 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Import environment variables to D-Bus and systemd
|
|
||||||
VARIABLES="DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE"
|
|
||||||
|
|
||||||
if hash dbus-update-activation-environment 2>/dev/null; then
|
|
||||||
exec dbus-update-activation-environment --systemd ${VARIABLES:- --all}
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec systemctl --user import-environment $VARIABLES
|
|
||||||
|
|
||||||
# Binding to reload the configuration (good for edits on bindings or adding new stuff
|
# Binding to reload the configuration (good for edits on bindings or adding new stuff
|
||||||
riverctl map normal "Mod4" R spawn $HOME/.config/river/init
|
riverctl map normal "Mod4" R spawn $HOME/.config/river/init
|
||||||
|
|
||||||
|
@ -19,3 +10,12 @@ riverctl spawn $HOME/.config/river/keybindings.sh
|
||||||
riverctl background-color 0x002b36
|
riverctl background-color 0x002b36
|
||||||
riverctl border-color-focused 0x93a1a1
|
riverctl border-color-focused 0x93a1a1
|
||||||
riverctl border-color-unfocused 0x586e75
|
riverctl border-color-unfocused 0x586e75
|
||||||
|
|
||||||
|
# Import environment variables to D-Bus and systemd
|
||||||
|
VARIABLES="DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE"
|
||||||
|
|
||||||
|
exec systemctl --user import-environment $VARIABLES
|
||||||
|
|
||||||
|
if hash dbus-update-activation-environment 2>/dev/null; then
|
||||||
|
exec dbus-update-activation-environment --systemd ${VARIABLES:- --all}
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue