Compare commits

...

3 Commits

Author SHA1 Message Date
d7305dc070 Fix laptop lid service 2021-10-29 17:45:05 +02:00
95a87d5112 Always restart services 2021-10-29 17:44:58 +02:00
9c11f4b357 Remove discord 2021-10-29 17:44:44 +02:00
22 changed files with 20 additions and 16 deletions

View File

@@ -52,7 +52,6 @@ environment:
MACHINE_HAS_KEEPASSX: "false"
MACHINE_HAS_NEXTCLOUD: "true"
MACHINE_HAS_STEAM: "true"
MACHINE_HAS_DISCORD: "true"
MACHINE_HAS_RESTIC_BACKUP: "false"
MACHINE_HAS_ELEMENT: "true"
MACHINE_RESOLUTION_X: "2560"

View File

@@ -3,7 +3,6 @@ BindsTo=windowmanager.target
After=windowmanager.target
Wants=blueman.service
#Wants=discord.service
Wants=dpms.service
Wants=dunst.service
Wants=element.service

View File

@@ -5,3 +5,4 @@ After=windowmanager.target
[Service]
ExecStart=/usr/bin/env blueman-applet
PassEnvironment=DISPLAY
Restart=always

View File

@@ -1,9 +0,0 @@
[Unit]
BindsTo=autostart.target
After=windowmanager.target
ConditionPathExists=%h/.var/run/features/discord
[Service]
ExecStart=/usr/bin/env discord
PassEnvironment=DISPLAY

View File

@@ -7,3 +7,4 @@ Type=oneshot
ExecStart=/usr/bin/env xset s off
ExecStart=/usr/bin/env xset dpms 0 0 300
PassEnvironment=DISPLAY
Restart=always

View File

@@ -5,3 +5,4 @@ After=windowmanager.target
[Service]
ExecStart=/usr/bin/env dunst -config %h/.config/dunstrc
PassEnvironment=DISPLAY
Restart=always

View File

@@ -8,3 +8,4 @@ ConditionPathExists=%h/.var/run/features/element
[Service]
ExecStart=/usr/bin/env element-desktop
PassEnvironment=DISPLAY
Restart=always

View File

@@ -5,3 +5,4 @@ After=windowmanager.target
[Service]
ExecStart=/usr/bin/env firefox --setDefaultBrowser -P %i
PassEnvironment=DISPLAY
Restart=always

View File

@@ -5,3 +5,4 @@ After=windowmanager.target
[Service]
ExecStart=/usr/bin/env gnome-keyring-daemon --start --foreground --components secrets
PassEnvironment=DISPLAY
Restart=always

View File

@@ -7,3 +7,4 @@ ConditionPathExists=%h/.var/run/features/gpg_agent
Type=forking
ExecStart=/usr/bin/env gpg-agent --homedir %h/.gnupg --no-detach --daemon
PassEnvironment=DISPLAY
Restart=always

View File

@@ -6,3 +6,4 @@ ConditionPathExists=%h/.var/run/features/keepassx
[Service]
ExecStart=/usr/bin/env keepassx --keyfile %h/.secret/main.key %h/.secret/main.kdbx
PassEnvironment=DISPLAY
Restart=always

View File

@@ -4,5 +4,7 @@ After=windowmanager.target
ConditionPathExists=%h/.var/run/features/machine_is_laptop
[Service]
Type=oneshot
ExecStart=/usr/bin/env bash -c 'grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup'
RemainAfterExit=true
PassEnvironment=DISPLAY

View File

@@ -8,6 +8,7 @@ ConditionPathExists=%h/.var/run/features/nextcloud
[Service]
ExecStart=/usr/bin/env nextcloud --background
PassEnvironment=DISPLAY
Restart=always
MemoryHigh=20%
MemoryMax=30%

View File

@@ -5,3 +5,4 @@ After=windowmanager.target
[Service]
ExecStart=/usr/bin/env nm-applet
PassEnvironment=DISPLAY
Restart=always

View File

@@ -5,3 +5,4 @@ After=windowmanager.target
[Service]
ExecStart=/usr/bin/env pasystray
PassEnvironment=DISPLAY
Restart=always

View File

@@ -5,3 +5,4 @@ After=windowmanager.target
[Service]
ExecStart=/usr/bin/env redshift-gtk -c %h/.config/redshift.conf
PassEnvironment=DISPLAY
Restart=always

View File

@@ -5,3 +5,4 @@ After=windowmanager.target
[Service]
ExecStart=/usr/bin/env spotify
PassEnvironment=DISPLAY
Restart=always

View File

@@ -8,3 +8,4 @@ ConditionPathExists=%h/.var/run/features/steam
[Service]
ExecStart=/usr/bin/env steam
PassEnvironment=DISPLAY
Restart=always

View File

@@ -5,3 +5,4 @@ After=windowmanager.target
[Service]
ExecStart=/usr/bin/env yubikey-touch-detector -libnotify
PassEnvironment=DISPLAY
Restart=always

View File

@@ -120,7 +120,6 @@ assign [class="^Spotify$"] $workspace9
assign [class="^Google-chrome$"] $workspace7
assign [class="^Chromium$"] $workspace7
assign [class="^discord"] $workspace7
assign [class="^Steam"] $workspace5
for_window [class="^Steam$"] move to workspace $workspace5

View File

@@ -329,9 +329,6 @@ packages:
man:
ubuntu: ["man-db", "manpages"]
archlinux: ["man-db", "man-pages"]
discord:
ubuntu: []
archlinux: ["discord"]
nextcloud:
ubuntu: ["nextcloud-desktop"]
archlinux: ["nextcloud-client"]
@@ -394,3 +391,6 @@ packages:
vim:
ubuntu: ["vim"]
archlinux: ["gvim"]
discord:
ubuntu: []
archlinux: ["discord"]

View File

@@ -53,7 +53,6 @@ mkdir -p "${FEATURE_DIR}"
[[ $MACHINE_HAS_NEXTCLOUD == "true" ]] && touch "${FEATURE_DIR}"/nextcloud
[[ $MACHINE_HAS_KEEPASSX == "true" ]] && touch "${FEATURE_DIR}"/keepassx
[[ $MACHINE_HAS_STEAM == "true" ]] && touch "${FEATURE_DIR}"/steam
[[ $MACHINE_HAS_DISCORD == "true" ]] && touch "${FEATURE_DIR}"/discord
[[ $MACHINE_HAS_RESTIC_BACKUP == "true" ]] && touch "${FEATURE_DIR}"/restic_backup
[[ $MACHINE_HAS_ELEMENT == "true" ]] && touch "${FEATURE_DIR}"/element