Make autostart ubuntu-compatible

This commit is contained in:
Hannes Körber
2021-01-27 15:17:45 +01:00
parent 8c18407688
commit f174a4e558
23 changed files with 54 additions and 31 deletions

View File

@@ -3,4 +3,5 @@ BindsTo=autostart.target
After=windowmanager.target
[Service]
ExecStart=/usr/bin/blueman-applet
ExecStart=/usr/bin/env blueman-applet
Environment=DISPLAY=:0

View File

@@ -5,4 +5,5 @@ After=windowmanager.target
ConditionEnvironment=MACHINE_HAS_DISCORD=true
[Service]
ExecStart=/usr/bin/discord
ExecStart=/usr/bin/env discord
Environment=DISPLAY=:0

View File

@@ -4,5 +4,6 @@ After=windowmanager.target
[Service]
Type=oneshot
ExecStart=xset s off
ExecStart=xset dpms 0 0 300
ExecStart=/usr/bin/env xset s off
ExecStart=/usr/bin/env xset dpms 0 0 300
Environment=DISPLAY=:0

View File

@@ -3,4 +3,5 @@ BindsTo=autostart.target
After=windowmanager.target
[Service]
ExecStart=/usr/bin/dunst -config %h/.config/dunstrc
ExecStart=/usr/bin/env dunst -config %h/.config/dunstrc
Environment=DISPLAY=:0

View File

@@ -3,4 +3,5 @@ BindsTo=autostart.target
After=windowmanager.target
[Service]
ExecStart=/usr/bin/firefox --setDefaultBrowser -P default
ExecStart=/usr/bin/env firefox --setDefaultBrowser -P default
Environment=DISPLAY=:0

View File

@@ -4,3 +4,4 @@ After=windowmanager.target
[Service]
ExecStart=/usr/bin/env gnome-keyring-daemon --start --foreground --components secrets
Environment=DISPLAY=:0

View File

@@ -4,4 +4,5 @@ After=windowmanager.target
[Service]
Type=forking
ExecStart=/usr/bin/gpg-agent --homedir %h/.gnupg --no-detach --daemon
ExecStart=/usr/bin/env gpg-agent --homedir %h/.gnupg --no-detach --daemon
Environment=DISPLAY=:0

View File

@@ -1,5 +1,6 @@
[Service]
Type=exec
ExecStart=i3 --config %h/.i3/config
ExecStart=/usr/bin/env i3 --config %h/.i3/config
Environment=DISPLAY=:0
Restart=no

View File

@@ -4,4 +4,5 @@ After=windowmanager.target
ConditionEnvironment=MACHINE_HAS_KEEPASSX=true
[Service]
ExecStart=/usr/bin/keepassx --keyfile %h/.secret/main.key %h/.secret/main.kdbx
ExecStart=/usr/bin/env keepassx --keyfile %h/.secret/main.key %h/.secret/main.kdbx
Environment=DISPLAY=:0

View File

@@ -4,6 +4,7 @@ After=windowmanager.target
[Service]
Type=oneshot
ExecStart=/usr/bin/setxkbmap -layout de -variant nodeadkeys
ExecStart=/usr/bin/xset r rate 150 50
ExecStart=/usr/bin/env setxkbmap -layout de -variant nodeadkeys
ExecStart=/usr/bin/env xset r rate 150 50
RemainAfterExit=true
Environment=DISPLAY=:0

View File

@@ -5,4 +5,5 @@ After=windowmanager.target
ConditionEnvironment=MACHINE_TYPE=laptop
[Service]
ExecStart=/usr/bin/bash -c 'grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup'
ExecStart=/usr/bin/env bash -c 'grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup'
Environment=DISPLAY=:0

View File

@@ -6,4 +6,5 @@ After=gnome-keyring.service
ConditionEnvironment=MACHINE_HAS_NEXTCLOUD=true
[Service]
ExecStart=/usr/bin/nextcloud --background
ExecStart=/usr/bin/env nextcloud --background
Environment=DISPLAY=:0

View File

@@ -3,4 +3,5 @@ BindsTo=autostart.target
After=windowmanager.target
[Service]
ExecStart=/usr/bin/nm-applet
ExecStart=/usr/bin/env nm-applet
Environment=DISPLAY=:0

View File

@@ -3,4 +3,5 @@ BindsTo=autostart.target
After=windowmanager.target
[Service]
ExecStart=/usr/bin/pasystray
ExecStart=/usr/bin/env pasystray
Environment=DISPLAY=:0

View File

@@ -3,4 +3,5 @@ BindsTo=autostart.target
After=windowmanager.target
[Service]
ExecStart=/usr/bin/redshift-gtk -c %h/.config/redshift.conf
ExecStart=/usr/bin/env redshift-gtk -c %h/.config/redshift.conf
Environment=DISPLAY=:0

View File

@@ -5,3 +5,4 @@ ConditionEnvironment=MACHINE_HAS_RESTIC_BACKUP=true
Type=oneshot
ExecStart=%h/bin/restic-backup
RemainAfterExit=true
Environment=DISPLAY=:0

View File

@@ -9,5 +9,6 @@ Type=oneshot
# > The command to execute may contain spaces, but control characters are not
# > allowed.
ExecStart=bash -c '%h/.screencfg/${MACHINE_DEFAULT_SCREENPROFILE}.sh'
ExecStart=/usr/bin/env bash -c '%h/.screencfg/${MACHINE_DEFAULT_SCREENPROFILE}.sh'
RemainAfterExit=true
Environment=DISPLAY=:0

View File

@@ -3,4 +3,5 @@ BindsTo=autostart.target
After=windowmanager.target
[Service]
ExecStart=/usr/bin/spotify
ExecStart=/usr/bin/env spotify
Environment=DISPLAY=:0

View File

@@ -6,4 +6,5 @@ After=i3.service
ConditionEnvironment=MACHINE_HAS_STEAM=true
[Service]
ExecStart=/usr/bin/steam
ExecStart=/usr/bin/env steam
Environment=DISPLAY=:0

View File

@@ -5,13 +5,14 @@ ConditionEnvironment=MACHINE_TYPE=laptop
[Service]
Type=oneshot
ExecStart=/usr/bin/synclient VertEdgeScroll=0
ExecStart=/usr/bin/synclient VertTwoFingerScroll=1
ExecStart=/usr/bin/synclient MaxSpeed=2.2
ExecStart=/usr/bin/synclient AccelFactor=0.08
ExecStart=/usr/bin/synclient TapButton1=1
ExecStart=/usr/bin/synclient CoastingSpeed=0
ExecStart=/usr/bin/synclient PalmDetect=1
ExecStart=/usr/bin/synclient PalmMinWidth=20
ExecStart=/usr/bin/synclient PalmMinZ=1
ExecStart=/usr/bin/env synclient VertEdgeScroll=0
ExecStart=/usr/bin/env synclient VertTwoFingerScroll=1
ExecStart=/usr/bin/env synclient MaxSpeed=2.2
ExecStart=/usr/bin/env synclient AccelFactor=0.08
ExecStart=/usr/bin/env synclient TapButton1=1
ExecStart=/usr/bin/env synclient CoastingSpeed=0
ExecStart=/usr/bin/env synclient PalmDetect=1
ExecStart=/usr/bin/env synclient PalmMinWidth=20
ExecStart=/usr/bin/env synclient PalmMinZ=1
RemainAfterExit=true
Environment=DISPLAY=:0

View File

@@ -1,4 +1,5 @@
[Service]
Type=oneshot
ExecStart=/usr/bin/setrandom --recursive --onlylarge --mode=stretch /usr/share/wallpapers
ExecStart=/usr/bin/env setrandom --recursive --onlylarge --mode=stretch /usr/share/wallpapers
RemainAfterExit=true
Environment=DISPLAY=:0

View File

@@ -4,5 +4,6 @@ After=windowmanager.target
[Service]
Type=oneshot
ExecStart=/usr/bin/xrdb -merge -I%h %h/.Xresources
ExecStart=/usr/bin/env xrdb -merge -I%h %h/.Xresources
RemainAfterExit=true
Environment=DISPLAY=:0

View File

@@ -3,4 +3,5 @@ BindsTo=autostart.target
After=windowmanager.target
[Service]
ExecStart=/usr/bin/yubikey-touch-detector -libnotify
ExecStart=/usr/bin/env yubikey-touch-detector -libnotify
Environment=DISPLAY=:0