use new xorg.socket stuff

This commit is contained in:
Jörg Thalheim 2014-08-18 08:25:02 +02:00
parent b9ad495ca9
commit ab3ebdd18c
51 changed files with 156 additions and 151 deletions

View File

@ -1,8 +0,0 @@
[Unit]
Description=Application "%i"
After=environment.target
IgnoreOnIsolate=yes
[Service]
ExecStart=/usr/bin/env %i
KillMode=process

View File

@ -1,9 +0,0 @@
[Unit]
Description=Automatic Trash cleanup
[Service]
Type=oneshot
ExecStart=/usr/bin/autotrash --days=14
[Install]
WantedBy=cron-weekly.target

View File

@ -2,4 +2,8 @@
Description=Chromium Description=Chromium
[Service] [Service]
Environment=DISPLAY=:0
ExecStart=/usr/bin/chromium ExecStart=/usr/bin/chromium
[Install]
WantedBy=mystuff.target

View File

@ -1,9 +0,0 @@
[Unit]
Description=Clean Empty folder / Deadlinks
[Service]
Type=oneshot
ExecStart=/home/joerg/bin/clean-music-library.rb
[Install]
WantedBy=timer-daily.target

View File

@ -1,5 +1,9 @@
[Unit] [Unit]
Description=handle clipboards Description=Evolution
[Service] [Service]
Environment=DISPLAY=:0
ExecStart=/usr/bin/copyq ExecStart=/usr/bin/copyq
[Install]
WantedBy=mystuff.target

View File

@ -1 +0,0 @@
/home/joerg/.config/systemd/user/gpo.service

View File

@ -1 +0,0 @@
/home/joerg/.config/systemd/user/autotrash.service

View File

@ -1,2 +0,0 @@
[Unit]
Description=Target which is executed at startup

View File

@ -1 +0,0 @@
/home/joerg/.config/systemd/user/mpdstated.service

View File

@ -1 +0,0 @@
/home/joerg/.config/systemd/user/rsync-upload.path

View File

@ -1,12 +0,0 @@
[Unit]
Description=Backup to Dropbox
[Service]
Type=oneshot
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
ExecStart=/usr/bin/yaourt -B %h/Backup/pacman/
[Install]
WantedBy=timer-weekly.target

View File

@ -1,5 +1,9 @@
[Unit] [Unit]
Description=Dropbox Network Storage Daemon Description=Dropbox
[Service] [Service]
Environment=DISPLAY=:0
ExecStart=/usr/bin/dropboxd ExecStart=/usr/bin/dropboxd
[Install]
WantedBy=mystuff.target

10
user/dunst.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=small notification daemon
After=dbus.socket
[Service]
Environment=DISPLAY=:0
ExecStart=/usr/bin/dunst
[Install]
WantedBy=mystuff.target

View File

@ -1,3 +0,0 @@
[Unit]
Description=Set session environment variables
IgnoreOnIsolate=true

9
user/evolution.service Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Evolution
[Service]
Environment=DISPLAY=:0
ExecStart=/usr/bin/evolution
[Install]
WantedBy=mystuff.target

View File

@ -1,13 +0,0 @@
[Unit]
Description=Suspend Gajim
Before=sleep.target
StopWhenUnneeded=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-/usr/bin/gajim-remote change_status offline
ExecStop=-/usr/bin/gajim-remote change_status online
[Install]
WantedBy=sleep.target

9
user/gajim.service Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Gajim
[Service]
Environment=DISPLAY=:0
ExecStart=/usr/bin/gajim
[Install]
WantedBy=mystuff.target

View File

@ -1,6 +0,0 @@
[Unit]
Description=Mount encfs with gnome keyring
After=gnome-keyring.service
[Service]
ExecStart=/usr/bin/gnome-encfs --mount

View File

@ -1,10 +0,0 @@
[Unit]
Description=GNOME Keyring Daemon
Wants=environment.target
Before=environment.target
IgnoreOnIsolate=true
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'test "$GNOME_KEYRING_CONTROL" && systemctl --user set-environment $(gnome-keyring-daemon --start)'
RemainAfterExit=true

View File

@ -1,13 +0,0 @@
[Unit]
Description=Automatic Gpodder download
[Service]
Type=oneshot
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
ExecStart=/usr/bin/gpo update
ExecStart=/usr/bin/gpo download
[Install]
WantedBy=cron-daily.target

11
user/i3.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=An improved dynamic tiling window manager
After=xorg.target
[Service]
Environment=DISPLAY=:0
ExecStart=/usr/bin/i3
Restart=on-failure
[Install]
WantedBy=wm.target

View File

@ -3,6 +3,3 @@ Description=Music Player Daemon
[Service] [Service]
ExecStart=/usr/bin/mpd --no-daemon ExecStart=/usr/bin/mpd --no-daemon
[Install]
WantedBy=default.target

View File

@ -1,9 +1,8 @@
[Unit] [Unit]
Description=Music Player Daemon socket Description=Music Player Daemon Sockets
[Socket] [Socket]
ListenStream=6600 ListenStream=6600
Service=mpd.service
[Install] [Install]
WantedBy=default.target WantedBy=sockets.target

View File

@ -1,10 +0,0 @@
[Unit]
Description=Watch mpd state
Requires=mpd.service
After=mpd.service
[Service]
ExecStart=/usr/bin/mpdstated --no-daemon
[Install]
WantedBy=default.target

6
user/mystuff.target Normal file
View File

@ -0,0 +1,6 @@
[Unit]
Description=Xinitrc Stuff
#After=xorg.target
[Install]
Alias=default.target

View File

@ -0,0 +1 @@
/home/joerg/.config/systemd/user/chromium.service

View File

@ -0,0 +1 @@
/home/joerg/.config/systemd/user/copyq.service

View File

@ -0,0 +1 @@
/home/joerg/.config/systemd/user/dropbox.service

View File

@ -0,0 +1 @@
/home/joerg/.config/systemd/user/dunst.service

View File

@ -0,0 +1 @@
/home/joerg/.config/systemd/user/evolution.service

View File

@ -0,0 +1 @@
/home/joerg/.config/systemd/user/gajim.service

View File

@ -0,0 +1 @@
/home/joerg/.config/systemd/user/pulseaudio.service

View File

@ -0,0 +1 @@
/home/joerg/.config/systemd/user/setxkbmap.service

View File

@ -0,0 +1 @@
/home/joerg/.config/systemd/user/xrdb.service

View File

@ -0,0 +1 @@
/home/joerg/.config/systemd/user/xset.service

View File

@ -1,10 +0,0 @@
[Unit]
Description=Start offlineimap as a daemon
[Service]
ExecStart=/usr/bin/offlineimap
KillSignal=SIGUSR2
Restart=always
[Install]
WantedBy=default.target

View File

@ -1,5 +0,0 @@
[Unit]
Description=Dropbox Network Storage Daemon
[Service]
ExecStart=/usr/bin/pcmanfm --daemon-mode

View File

@ -1,11 +1,10 @@
[Unit] [Unit]
Description=PulseAudio Sound System Description=PulseAudio Sound System
Before=sound.target
[Service] [Service]
BusName=org.pulseaudio.Server BusName=org.pulseaudio.Server
ExecStart=/usr/bin/pulseaudio ExecStart=/usr/bin/pulseaudio
Restart=always Restart=on-failure
[Install] [Install]
WantedBy=default.target WantedBy=mystuff.target

View File

@ -1,6 +0,0 @@
[Path]
PathChanged=/home/joerg/upload
MakeDirectory=yes
[Install]
WantedBy=default.target

View File

@ -1,8 +0,0 @@
[Unit]
Description=Rsync Server Upload
[Service]
ExecStart=/home/joerg/bin/upload
[Install]
WantedBy=mystuff.target

11
user/setxkbmap.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Enable zapping
After=xorg.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=setxkbmap -option terminate:ctrl_alt_bksp
[Install]
WantedBy=mystuff.target

View File

@ -1,12 +0,0 @@
[Unit]
Description=Tmux Server
[Service]
Type=forking
RemainAfterExit=yes
ExecStart=/usr/bin/tmux new-session -d -s %u
ExecStop=/usr/bin/tmux kill-session -t %u
Restart=Always
[Install]
WantedBy=default.target

9
user/wm.target Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Window Manager
Wants=xorg.target
Wants=mystuff.target
Requires=dbus.socket
AllowIsolate=true
[Install]
Alias=default.target

11
user/xmodmap.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Capslock is escape
After=xorg.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
[Install]
WantedBy=mystuff.target

10
user/xorg.target Normal file
View File

@ -0,0 +1,10 @@
#
# X server target
#
# xorg.target is a virtual target - it becomes active as soon as Xorg
# is ready to accept incoming connections. If your service requires
# Xorg to be ready, include 'After=xorg.target' in your service file.
[Unit]
Description=The basic Xorg server

View File

@ -0,0 +1 @@
xorg@.socket

11
user/xorg@.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Xorg server at display %i
Requires=xorg@%i.socket
After=xorg@%i.socket
[Service]
Type=simple
SuccessExitStatus=0 1
ExecStart=/usr/bin/Xorg :%i -nolisten tcp -noreset -verbose 2 vt1

8
user/xorg@.socket Normal file
View File

@ -0,0 +1,8 @@
[Unit]
Description=Socket for xorg at display %i
[Socket]
ListenStream=/tmp/.X11-unix/X%i
[Install]
WantedBy=xorg.target

11
user/xrdb.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Capslock is escape
After=xorg.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/xrdb -merge %h/.Xresources
[Install]
WantedBy=mystuff.target

11
user/xset.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Xorg Blanking
After=xorg.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/xset -b +dpms 0 0 300
[Install]
WantedBy=mystuff.target