mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 14:44:58 +08:00
Manage desktop applications via systemd
This commit is contained in:
parent
2813adb28a
commit
a0d6a76bfd
10 changed files with 80 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ fi
|
|||
|
||||
source ${XDG_CONFIG_HOME}/X11/profile
|
||||
|
||||
systemctl start --user Xorg.target
|
||||
|
||||
if [[ -n "$@" ]]; then
|
||||
exec "$@"
|
||||
fi
|
||||
|
|
|
|||
4
.config/systemd/user/Xorg.target
Normal file
4
.config/systemd/user/Xorg.target
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[Unit]
|
||||
Description=Launch desktop applications
|
||||
Requires=default.target
|
||||
After=default.target
|
||||
9
.config/systemd/user/copyq.service
Normal file
9
.config/systemd/user/copyq.service
Normal 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
|
||||
10
.config/systemd/user/fcitx.service
Normal file
10
.config/systemd/user/fcitx.service
Normal 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
|
||||
9
.config/systemd/user/nm-applet.service
Normal file
9
.config/systemd/user/nm-applet.service
Normal 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
|
||||
9
.config/systemd/user/picom.service
Normal file
9
.config/systemd/user/picom.service
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=X compositor
|
||||
|
||||
[Service]
|
||||
Environment="LANG=zh_CN.UTF-8"
|
||||
ExecStart=/usr/bin/picom
|
||||
|
||||
[Install]
|
||||
WantedBy=Xorg.target
|
||||
9
.config/systemd/user/policykit-agent.service
Normal file
9
.config/systemd/user/policykit-agent.service
Normal 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
|
||||
9
.config/systemd/user/qv2ray.service
Normal file
9
.config/systemd/user/qv2ray.service
Normal 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
|
||||
10
.config/systemd/user/v2ray.service
Normal file
10
.config/systemd/user/v2ray.service
Normal 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
|
||||
9
.config/systemd/user/xsettingsd.service
Normal file
9
.config/systemd/user/xsettingsd.service
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue