1
0
Fork 0

systemd integration

This commit is contained in:
Massaki Archambault 2019-03-28 23:12:46 -04:00
parent 496e0f19a0
commit c68b9499b5
11 changed files with 22 additions and 38 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1 @@
/home/marchambault/.config/systemd/user/tmux.service

View File

@ -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

View File

@ -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

View File

@ -1,4 +0,0 @@
[Unit]
Description=User Graphical Login
Requires=default.target
After=default.target

View File

@ -1 +0,0 @@
/home/marchambault/.config/systemd/user/compton.service

View File

@ -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

View File

@ -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"

View File

@ -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