mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
systemd: launch i3 and user programs with systemd
This commit is contained in:
10
.config/systemd/user/autocutsel-primary.service
Normal file
10
.config/systemd/user/autocutsel-primary.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=autocutsel -selection primary
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/autocutsel -selection PRIMARY
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
|
10
.config/systemd/user/autocutsel.service
Normal file
10
.config/systemd/user/autocutsel.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=autocutsel
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/autocutsel
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
|
1
.config/systemd/user/basic.target.wants/profile.service
Symbolic link
1
.config/systemd/user/basic.target.wants/profile.service
Symbolic link
@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/profile.service
|
12
.config/systemd/user/blueman-applet.service
Normal file
12
.config/systemd/user/blueman-applet.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Bluetooth Applet
|
||||
After=graphical-session.target bluetooth.service
|
||||
Requires=graphical-session.target bluetooth.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/blueman-applet
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=desktop.target
|
1
.config/systemd/user/default.target
Symbolic link
1
.config/systemd/user/default.target
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/systemd/user/basic.target
|
1
.config/systemd/user/default.target.wants/dunst.service
Symbolic link
1
.config/systemd/user/default.target.wants/dunst.service
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/systemd/user/dunst.service
|
1
.config/systemd/user/default.target.wants/redshift.service
Symbolic link
1
.config/systemd/user/default.target.wants/redshift.service
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/systemd/user/redshift.service
|
1
.config/systemd/user/desktop.target.wants/blueman-applet.service
Symbolic link
1
.config/systemd/user/desktop.target.wants/blueman-applet.service
Symbolic link
@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/blueman-applet.service
|
1
.config/systemd/user/desktop.target.wants/dunst.service
Symbolic link
1
.config/systemd/user/desktop.target.wants/dunst.service
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/systemd/user/dunst.service
|
1
.config/systemd/user/desktop.target.wants/nextcloud.service
Symbolic link
1
.config/systemd/user/desktop.target.wants/nextcloud.service
Symbolic link
@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/nextcloud.service
|
1
.config/systemd/user/desktop.target.wants/picom.service
Symbolic link
1
.config/systemd/user/desktop.target.wants/picom.service
Symbolic link
@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/picom.service
|
1
.config/systemd/user/desktop.target.wants/polybar@i3bar.service
Symbolic link
1
.config/systemd/user/desktop.target.wants/polybar@i3bar.service
Symbolic link
@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/polybar@.service
|
1
.config/systemd/user/desktop.target.wants/solaar.service
Symbolic link
1
.config/systemd/user/desktop.target.wants/solaar.service
Symbolic link
@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/solaar.service
|
@ -0,0 +1 @@
|
||||
/usr/lib/systemd/user/xdg-user-dirs-update.service
|
@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/autocutsel-primary.service
|
@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/autocutsel.service
|
1
.config/systemd/user/graphical-session.target.wants/i3.service
Symbolic link
1
.config/systemd/user/graphical-session.target.wants/i3.service
Symbolic link
@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/i3.service
|
14
.config/systemd/user/i3.service
Normal file
14
.config/systemd/user/i3.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=i3 - an improved dynamic, tiling window manager
|
||||
Requires=xorg.target
|
||||
Before=graphical-session.target
|
||||
After=profile.service xprofile.service xorg.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/i3
|
||||
ExecReload=/bin/sh -c 'i3-msg restart; systemctl is-active --user -q picom && systemctl --user restart picom'
|
||||
ExecStop=/bin/systemctl --user stop desktop.target
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
14
.config/systemd/user/nextcloud.service
Normal file
14
.config/systemd/user/nextcloud.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Nextcloud Client
|
||||
Requires=graphical-session.target
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/nextcloud --background
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=desktop.target
|
12
.config/systemd/user/picom.service
Normal file
12
.config/systemd/user/picom.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=A lightweight compositor for X11
|
||||
Requires=graphical-session.target
|
||||
After=graphical-session.target xorg.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/picom --experimental-backends --dbus
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=desktop.target
|
12
.config/systemd/user/polybar@.service
Normal file
12
.config/systemd/user/polybar@.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Polybar
|
||||
Requires=graphical-session.target
|
||||
After=graphical-session.target pulseaudio.socket
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/polybar --reload --log=warning %i
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=desktop.target
|
10
.config/systemd/user/profile.service
Normal file
10
.config/systemd/user/profile.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Load profile environment into session
|
||||
Before=graphical-session-pre.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/bash -c '. $HOME/.config/dotfiles/.profile && systemctl --user import-environment'
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
@ -1,5 +1,6 @@
|
||||
[Unit]
|
||||
Description=Lock X LightDM session before sleeping
|
||||
Requires=graphical-session.target
|
||||
Before=sleep.target
|
||||
|
||||
[Service]
|
||||
|
@ -1 +1 @@
|
||||
../sleep-lock-lightdm.service
|
||||
/home/frebib/.config/systemd/user/sleep-lock-lightdm.service
|
13
.config/systemd/user/solaar.service
Normal file
13
.config/systemd/user/solaar.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Solaar Logitech status applet
|
||||
Requires=graphical-session.target
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/solaar --restart-on-wake-up -d
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=desktop.target
|
10
.config/systemd/user/xautolock.service
Normal file
10
.config/systemd/user/xautolock.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=XBindKeys
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/xautolock -time 1 -locker 'dm-tool switch-to-greeter' -detectsleep -resetsaver -secure
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
11
.config/systemd/user/xbindkeys.service
Normal file
11
.config/systemd/user/xbindkeys.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=XBindKeys
|
||||
Requires=profile.service
|
||||
After=profile.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/xbindkeys -n -f $XDG_CONFIG_HOME/X11/xbindkeysrc
|
||||
KillMode=process
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
3
.config/systemd/user/xorg.target
Normal file
3
.config/systemd/user/xorg.target
Normal file
@ -0,0 +1,3 @@
|
||||
[Unit]
|
||||
Description=Graphical desktop environment
|
||||
Requires=basic.target
|
1
.config/systemd/user/xorg.target.wants/xprofile.service
Symbolic link
1
.config/systemd/user/xorg.target.wants/xprofile.service
Symbolic link
@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/xprofile.service
|
13
.config/systemd/user/xprofile.service
Normal file
13
.config/systemd/user/xprofile.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Load Xorg configuration
|
||||
PartOf=xorg.target
|
||||
Requires=profile.service
|
||||
After=xorg.target profile.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/bash -cx '. $XDG_CONFIG_HOME/X11/xprofile && systemctl --user import-environment'
|
||||
|
||||
[Install]
|
||||
WantedBy=xorg.target
|
Reference in New Issue
Block a user