Manage desktop applications via systemd

This commit is contained in:
rydesun 2021-01-18 13:10:34 +08:00
parent 2813adb28a
commit a0d6a76bfd
10 changed files with 80 additions and 0 deletions

View file

@ -10,6 +10,8 @@ fi
source ${XDG_CONFIG_HOME}/X11/profile
systemctl start --user Xorg.target
if [[ -n "$@" ]]; then
exec "$@"
fi

View file

@ -0,0 +1,4 @@
[Unit]
Description=Launch desktop applications
Requires=default.target
After=default.target

View file

@ -0,0 +1,9 @@
[Unit]
Description=Clipboard manager with searchable and editable history
[Service]
Environment="LANG=zh_CN.UTF-8"
ExecStart=/usr/bin/copyq
[Install]
WantedBy=Xorg.target

View file

@ -0,0 +1,10 @@
[Unit]
Description=Input method framework
[Service]
Type=forking
Environment="LANG=zh_CN.UTF-8"
ExecStart=/usr/bin/fcitx-autostart
[Install]
WantedBy=Xorg.target

View file

@ -0,0 +1,9 @@
[Unit]
Description=Applet for managing network connections
[Service]
Environment="LANG=zh_CN.UTF-8"
ExecStart=/usr/bin/nm-applet
[Install]
WantedBy=Xorg.target

View file

@ -0,0 +1,9 @@
[Unit]
Description=X compositor
[Service]
Environment="LANG=zh_CN.UTF-8"
ExecStart=/usr/bin/picom
[Install]
WantedBy=Xorg.target

View file

@ -0,0 +1,9 @@
[Unit]
Description=The LXQt policykit authentication agent
[Service]
Environment="LANG=zh_CN.UTF-8"
ExecStart=/usr/bin/lxqt-policykit-agent
[Install]
WantedBy=Xorg.target

View file

@ -0,0 +1,9 @@
[Unit]
Description=Cross-platform V2ray Client written in Qt
[Service]
Environment="LANG=zh_CN.UTF-8"
ExecStart=/usr/bin/qv2ray
[Install]
WantedBy=Xorg.target

View file

@ -0,0 +1,10 @@
[Unit]
Description=A platform for building proxies to bypass network restrictions Service
After=default.target
[Service]
; Rewrite config from qv2ray
ExecStart=/usr/bin/v2ray -config %h/.config/qv2ray/generated/config.gen.json -config %h/.config/v2ray/config.json
[Install]
WantedBy=default.target

View file

@ -0,0 +1,9 @@
[Unit]
Description=Provides settings to X11 applications via the XSETTINGS specification
[Service]
Environment="LANG=zh_CN.UTF-8"
ExecStart=/usr/bin/xsettingsd
[Install]
WantedBy=Xorg.target