aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2024-02-16 09:42:35 +0100
committerPatrick Spek <p.spek@tyil.nl>2024-02-16 09:42:35 +0100
commit1972947a21fc85dc4c835c892ffdd3f5e97f3493 (patch)
tree427abeda4b35e375ffc7f48a0100a54071bf947d
parentae586e16cb98aa8de57f9a955f39a020636780fe (diff)
Setup systemd stuff in awesome itself
-rw-r--r--.config/awesome/rc.lua4
-rw-r--r--.config/systemd/user/desktop-app@.service1
-rw-r--r--.local/etc/x/xinitrc7
3 files changed, 4 insertions, 8 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 42f93b7..ad20842 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -47,6 +47,10 @@ end
-- }}}
-- Start the desktop.target to autostart applications through systemd
+awful.util.spawn_with_shell("systemctl --user import-environment DISPLAY")
+awful.util.spawn_with_shell("systemctl --user import-environment PATH")
+awful.util.spawn_with_shell("systemctl --user import-environment WINIT_X11_SCALE_FACTOR")
+awful.util.spawn_with_shell("systemctl --user import-environment XAUTHORITY")
awful.util.spawn_with_shell("systemctl --user start desktop.target")
awful.util.spawn_with_shell("systemctl --user start desktop-x11.target")
diff --git a/.config/systemd/user/desktop-app@.service b/.config/systemd/user/desktop-app@.service
index 4b818ae..e2f0281 100644
--- a/.config/systemd/user/desktop-app@.service
+++ b/.config/systemd/user/desktop-app@.service
@@ -12,7 +12,6 @@ ExecSearchPath=/usr/bin
Environment=PATH=/home/tyil/.local/bin:/home/tyil/.config/shell/wrappers.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
WorkingDirectory=%h
-ExecStartPre=sleep 5
ExecStart=%i
[Install]
diff --git a/.local/etc/x/xinitrc b/.local/etc/x/xinitrc
index 1896830..3d0f0d9 100644
--- a/.local/etc/x/xinitrc
+++ b/.local/etc/x/xinitrc
@@ -26,10 +26,3 @@ xmodmap -e "keycode 108 = ISO_Level3_Shift"
# Export variables for a better X11 experience
export WINIT_X11_SCALE_FACTOR=1
-
-# Import X11 environment for systemd
-systemctl --user import-environment \
- DISPLAY \
- PATH \
- WINIT_X11_SCALE_FACTOR \
- XAUTHORITY