moved to systemd services
This commit is contained in:
parent
6e7427b1be
commit
6a482bd3d3
Binary file not shown.
@ -1,16 +1,17 @@
|
||||
-- Exec at start
|
||||
|
||||
hl.on("hyprland.start", function()
|
||||
-- notices
|
||||
hl.exec_cmd(os.getenv("HOME") .. "/.local/share/until-scripts/run-at-start.sh")
|
||||
hl.exec_cmd("systemctl --user start hyprpolkitagent")
|
||||
hl.exec_cmd("sleep 3 && copyq --start-server")
|
||||
hl.exec_cmd("uwsm app -- waybar -c " .. os.getenv("HOME") .. "/.config/waybar/bar/config.jsonc -s " .. os.getenv("HOME") .. "/.config/waybar/bar/style.css")
|
||||
|
||||
-- ensure themen
|
||||
hl.exec_cmd("hyprctl setcursor catppuccin-frappe-mauve-cursors 16")
|
||||
hl.exec_cmd("dconf write /org/gnome/desktop/interface/cursor-size \"16\"")
|
||||
hl.exec_cmd("dconf write /org/gnome/desktop/interface/cursor-theme \"'catppuccin-frappe-mauve-cursors'\"")
|
||||
hl.exec_cmd("dconf write /org/gnome/desktop/interface/gtk-theme \"'catppuccin-frappe-mauve-standard+default'\"")
|
||||
hl.exec_cmd("hyprpaper")
|
||||
|
||||
-- ensure apps
|
||||
hl.exec_cmd("openrgb -p " .. os.getenv("HOME") .. "/.config/OpenRGB/Cat.orp")
|
||||
hl.exec_cmd("sleep 3 && uwsm app -- nextcloud --background")
|
||||
hl.exec_cmd("uwsm app -- kdeconnectd &")
|
||||
hl.exec_cmd("systemctl --user enable waybar.service kdeconnectd.service nextcloud.service hyprpolkitagent copyq.service")
|
||||
end)
|
||||
|
||||
@ -2223,16 +2223,16 @@
|
||||
"RunZoneChecks": false,
|
||||
"autoload_profiles": {
|
||||
"exit_profile": {
|
||||
"enabled": false,
|
||||
"name": ""
|
||||
"enabled": true,
|
||||
"name": "Off"
|
||||
},
|
||||
"resume_profile": {
|
||||
"enabled": false,
|
||||
"name": ""
|
||||
"enabled": true,
|
||||
"name": "Cat"
|
||||
},
|
||||
"suspend_profile": {
|
||||
"enabled": false,
|
||||
"name": ""
|
||||
"enabled": true,
|
||||
"name": "Off"
|
||||
}
|
||||
},
|
||||
"exit_profile": {
|
||||
|
||||
14
eggs/utility/systemd/copyq.service
Normal file
14
eggs/utility/systemd/copyq.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Copyq Server
|
||||
Documentation=https://copyq.net/
|
||||
After=default.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/env copyq
|
||||
Restart=on-failure
|
||||
StandardOutput=journal
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=ensure_app_is_running.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Specifiers
|
||||
ExecStart=/usr/bin/env bash %h/.local/share/until-scripts/ensure_app_is_running.sh run
|
||||
Restart=no
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=Run ensure_app_is_running periodicly
|
||||
|
||||
[Timer]
|
||||
Unit=ensure_app_is_running.service
|
||||
OnUnitInactiveSec=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
15
eggs/utility/systemd/kdeconnectd.service
Normal file
15
eggs/utility/systemd/kdeconnectd.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=KdeConnectd
|
||||
Documentation=https://kdeconnect.kde.org/
|
||||
After=graphical-session.target
|
||||
Wants=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/env kdeconnectd
|
||||
Restart=on-failure
|
||||
StandardOutput=journal
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
15
eggs/utility/systemd/nextcloud.service
Normal file
15
eggs/utility/systemd/nextcloud.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Nextcloud Client
|
||||
Documentation=https://nextcloud.com/install/
|
||||
After=graphical-session.target
|
||||
Wants=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/env nextcloud --background
|
||||
Restart=on-failure
|
||||
StandardOutput=journal
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
15
eggs/utility/systemd/waybar.service
Normal file
15
eggs/utility/systemd/waybar.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Waybar status bar
|
||||
Documentation=https://github.com/Alexays/Waybar
|
||||
After=graphical-session.target
|
||||
Wants=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/env waybar -c %h/.config/waybar/bar/config.jsonc -s %h/.config/waybar/bar/style.css
|
||||
Restart=on-failure
|
||||
StandardOutput=journal
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
x
Reference in New Issue
Block a user