mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add gaming helper
This commit is contained in:
25
bin/omarchy-setup-gaming
Normal file
25
bin/omarchy-setup-gaming
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p ~/.config/systemd/user/
|
||||
|
||||
cat > ~/.config/systemd/user/omarchy-gaming-helper.service << EOF
|
||||
[Unit]
|
||||
Description=Omarchy Gaming Helper
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=$OMARCHY_PATH/default/hypr/scripts/omarchy-gaming-helper.sh
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
EOF
|
||||
|
||||
systemctl --user daemon-reload
|
||||
|
||||
systemctl --user enable omarchy-gaming-helper.service
|
||||
systemctl --user start omarchy-gaming-helper.service
|
||||
|
||||
echo "Omarchy Gaming Helper service has been installed and started."
|
||||
Reference in New Issue
Block a user