systemd integration
This commit is contained in:
parent
496e0f19a0
commit
c68b9499b5
|
@ -256,9 +256,8 @@ bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
### Startup
|
### Startup
|
||||||
# reach systemd target
|
# reach systemd target
|
||||||
#exec /bin/systemctl --user import-environment WAYLAND_DISPLAY
|
|
||||||
exec /bin/systemctl --user import-environment
|
exec /bin/systemctl --user import-environment
|
||||||
exec /bin/systemctl --user start user-graphical-login.target
|
exec /bin/systemctl --user start sway-session.target
|
||||||
|
|
||||||
# autorun .desktop
|
# autorun .desktop
|
||||||
exec /bin/dex -a
|
exec /bin/dex -a
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=A compositor for X11
|
|
||||||
Requires=user-graphical-login.target
|
|
||||||
After=user-graphical-login.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/bin/compton
|
|
||||||
Restart=always
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=user-graphical-login.target
|
|
|
@ -0,0 +1 @@
|
||||||
|
/home/marchambault/.config/systemd/user/tmux.service
|
|
@ -1,12 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Redshift display colour temperature adjustment
|
Description=Redshift display colour temperature adjustment
|
||||||
Documentation=http://jonls.dk/redshift/
|
Documentation=http://jonls.dk/redshift/
|
||||||
Requires=user-graphical-login.target
|
Requires=sway-session.target
|
||||||
After=user-graphical-login.target
|
After=sway-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/redshift
|
ExecStart=/usr/bin/redshift -m wayland
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=user-graphical-login.target
|
WantedBy=sway-session.target
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=sway compositor session
|
||||||
|
Documentation=man:systemd.special(7)
|
||||||
|
BindsTo=graphical-session.target
|
||||||
|
Wants=graphical-session-pre.target
|
||||||
|
After=graphical-session-pre.target
|
|
@ -1,4 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=User Graphical Login
|
|
||||||
Requires=default.target
|
|
||||||
After=default.target
|
|
|
@ -1 +0,0 @@
|
||||||
/home/marchambault/.config/systemd/user/compton.service
|
|
|
@ -1,11 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Animated wallpaper
|
|
||||||
Requires=user-graphical-login.target
|
|
||||||
After=user-graphical-login.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/bin/bash -c '"$HOME/.local/bin/wallpaper"'
|
|
||||||
Restart=always
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=user-graphical-login.target
|
|
|
@ -9,11 +9,11 @@ alias rename="perl-rename"
|
||||||
alias userctl="systemctl --user"
|
alias userctl="systemctl --user"
|
||||||
|
|
||||||
# ls
|
# ls
|
||||||
alias ls="lsd --group-dirs first"
|
alias ls='lsd --group-dirs first '
|
||||||
alias l='lsd --group-dirs -l'
|
alias l='lsd --group-dirs first -l '
|
||||||
alias la='lsd --group-dirs -a'
|
alias la='lsd --group-dirs first -a '
|
||||||
alias lla='lsd --group-dirs -la'
|
alias lla='lsd --group-dirs first -la '
|
||||||
alias lt='lsd --group-dirs --tree'
|
alias lt='lsd --group-dirs first --tree '
|
||||||
|
|
||||||
# powershell seems to have trouble with xterm-256color
|
# powershell seems to have trouble with xterm-256color
|
||||||
alias pwsh="TERM=xterm pwsh"
|
alias pwsh="TERM=xterm pwsh"
|
||||||
|
|
|
@ -9,6 +9,11 @@ if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
export ECORE_EVAS_ENGINE=wayland_egl
|
export ECORE_EVAS_ENGINE=wayland_egl
|
||||||
export ELM_ENGINE=wayland_egl
|
export ELM_ENGINE=wayland_egl
|
||||||
|
|
||||||
|
# FIXME: This is a workaround
|
||||||
|
# see: https://github.com/swaywm/wlroots/pull/1344
|
||||||
|
#export WLR_DRM_NO_ATOMIC=1
|
||||||
|
#export WLR_DRM_NO_ATOMIC_GAMMA=1
|
||||||
|
|
||||||
exec sway
|
exec sway
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue