Compare commits
8 Commits
1d12b99907
...
6c3e9d7469
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c3e9d7469 | |||
| 610edcc72d | |||
| 66bb04ee9a | |||
| 0043122f62 | |||
| afdd8fb34c | |||
| 4e1f071240 | |||
| 39ef8a418e | |||
| ab15b22832 |
@@ -36,6 +36,8 @@ environment:
|
|||||||
MACHINE_TYPE: "workstation"
|
MACHINE_TYPE: "workstation"
|
||||||
MACHINE_HAS_KEEPASSX: "false"
|
MACHINE_HAS_KEEPASSX: "false"
|
||||||
MACHINE_HAS_NEXTCLOUD: "true"
|
MACHINE_HAS_NEXTCLOUD: "true"
|
||||||
|
MACHINE_HAS_STEAM: "true"
|
||||||
|
MACHINE_HAS_DISCORD: "true"
|
||||||
MACHINE_HAS_RESTIC_BACKUP: "false"
|
MACHINE_HAS_RESTIC_BACKUP: "false"
|
||||||
MACHINE_DEFAULT_SCREENPROFILE: "ares"
|
MACHINE_DEFAULT_SCREENPROFILE: "ares"
|
||||||
MACHINE_RESOLUTION_X: "2560"
|
MACHINE_RESOLUTION_X: "2560"
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
|
BindsTo=windowmanager.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
Wants=blueman.service
|
Wants=blueman.service
|
||||||
|
Wants=discord.service
|
||||||
Wants=dpms.service
|
Wants=dpms.service
|
||||||
Wants=dunst.service
|
Wants=dunst.service
|
||||||
Wants=firefox.service
|
Wants=firefox.service
|
||||||
@@ -14,7 +18,9 @@ Wants=redshift.service
|
|||||||
Wants=restic.timer
|
Wants=restic.timer
|
||||||
Wants=screencfg.service
|
Wants=screencfg.service
|
||||||
Wants=spotify.service
|
Wants=spotify.service
|
||||||
|
Wants=steam.service
|
||||||
Wants=touchpad.service
|
Wants=touchpad.service
|
||||||
Wants=wallpaper.timer
|
Wants=wallpaper.timer
|
||||||
Wants=xresources.service
|
Wants=xresources.service
|
||||||
Wants=yubikey-touch-detector.service
|
Wants=yubikey-touch-detector.service
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/blueman-applet
|
ExecStart=/usr/bin/blueman-applet
|
||||||
|
|||||||
8
autostart/services/discord.service
Normal file
8
autostart/services/discord.service
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
|
ConditionEnvironment=MACHINE_HAS_DISCORD=true
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/discord
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/dunst -config %h/.config/dunstrc
|
ExecStart=/usr/bin/dunst -config %h/.config/dunstrc
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/firefox --setDefaultBrowser -P default
|
ExecStart=/usr/bin/firefox --setDefaultBrowser -P default
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
|||||||
5
autostart/services/i3.service
Normal file
5
autostart/services/i3.service
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
[Service]
|
||||||
|
Type=exec
|
||||||
|
ExecStart=i3 --config %h/.i3/config
|
||||||
|
|
||||||
|
Restart=no
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
ConditionEnvironment=MACHINE_HAS_KEEPASSX=true
|
ConditionEnvironment=MACHINE_HAS_KEEPASSX=true
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
ConditionEnvironment=MACHINE_TYPE=laptop
|
ConditionEnvironment=MACHINE_TYPE=laptop
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
ConditionEnvironment=MACHINE_HAS_NEXTCLOUD=true
|
ConditionEnvironment=MACHINE_HAS_NEXTCLOUD=true
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/nm-applet
|
ExecStart=/usr/bin/nm-applet
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/pasystray
|
ExecStart=/usr/bin/pasystray
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/redshift-gtk -c %h/.config/redshift.conf
|
ExecStart=/usr/bin/redshift-gtk -c %h/.config/redshift.conf
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=Mon..Fri 09:00:00
|
OnCalendar=Mon..Fri 09:00:00
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
ConditionEnvironment=MACHINE_DEFAULT_SCREENPROFILE
|
ConditionEnvironment=MACHINE_DEFAULT_SCREENPROFILE
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/spotify
|
ExecStart=/usr/bin/spotify
|
||||||
|
|||||||
9
autostart/services/steam.service
Normal file
9
autostart/services/steam.service
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
After=i3.service
|
||||||
|
|
||||||
|
ConditionEnvironment=MACHINE_HAS_STEAM=true
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/steam
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
ConditionEnvironment=MACHINE_TYPE=laptop
|
ConditionEnvironment=MACHINE_TYPE=laptop
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnActiveSec=0s
|
OnActiveSec=0s
|
||||||
|
|||||||
3
autostart/services/windowmanager.target
Normal file
3
autostart/services/windowmanager.target
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[Unit]
|
||||||
|
Requires=i3.service
|
||||||
|
After=i3.service
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/yubikey-touch-detector -libnotify
|
ExecStart=/usr/bin/yubikey-touch-detector -libnotify
|
||||||
|
|||||||
11
bin/kubectl-env
Executable file
11
bin/kubectl-env
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
mycloud)
|
||||||
|
shift
|
||||||
|
command kubectl --kubeconfig=<(pass show mycloud/kubeconfig) "${@}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
command kubectl "${@}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
@@ -196,7 +196,7 @@ packages:
|
|||||||
zathura:
|
zathura:
|
||||||
fedora: ["zathura-pdf-mupdf"]
|
fedora: ["zathura-pdf-mupdf"]
|
||||||
ubuntu: ["zathura", "zathura-pdf-poppler"]
|
ubuntu: ["zathura", "zathura-pdf-poppler"]
|
||||||
archlinux: ["zathura", "zathura-pdf-mupdf"]
|
archlinux: ["zathura", "zathura-pdf-poppler"]
|
||||||
pandoc:
|
pandoc:
|
||||||
fedora: ["pandoc"]
|
fedora: ["pandoc"]
|
||||||
ubuntu: ["pandoc"]
|
ubuntu: ["pandoc"]
|
||||||
@@ -493,6 +493,10 @@ packages:
|
|||||||
fedora: []
|
fedora: []
|
||||||
ubuntu: []
|
ubuntu: []
|
||||||
archlinux: ["imagemagick"]
|
archlinux: ["imagemagick"]
|
||||||
|
mpv:
|
||||||
|
fedora: []
|
||||||
|
ubuntu: []
|
||||||
|
archlinux: ["mpv"]
|
||||||
|
|
||||||
remove:
|
remove:
|
||||||
mousepad:
|
mousepad:
|
||||||
|
|||||||
1
user.yml
1
user.yml
@@ -78,7 +78,6 @@
|
|||||||
- gpg-agent.socket
|
- gpg-agent.socket
|
||||||
- gpg-agent-browser.socket
|
- gpg-agent-browser.socket
|
||||||
- gpg-agent-ssh.socket
|
- gpg-agent-ssh.socket
|
||||||
tags: [test]
|
|
||||||
|
|
||||||
- name: create directory for getty autologin
|
- name: create directory for getty autologin
|
||||||
file:
|
file:
|
||||||
|
|||||||
@@ -20,13 +20,15 @@ fi
|
|||||||
|
|
||||||
start_wm() {
|
start_wm() {
|
||||||
log "starting i3"
|
log "starting i3"
|
||||||
exec i3 -c "$HOME/.i3/config" >> "$LOGDIR/i3/i3.log"
|
systemctl --user start windowmanager.target
|
||||||
|
sleep 1
|
||||||
|
systemctl --user start autostart.target
|
||||||
|
sleep inf
|
||||||
# exec systemd-run --user --unit i3_user --pty --setenv=DISPLAY=${DISPLAY} i3 -c "$HOME/.i3/config" >> "$LOGDIR/i3/i3.log"
|
# exec systemd-run --user --unit i3_user --pty --setenv=DISPLAY=${DISPLAY} i3 -c "$HOME/.i3/config" >> "$LOGDIR/i3/i3.log"
|
||||||
}
|
}
|
||||||
|
|
||||||
autostart() {
|
autostart() {
|
||||||
log "Starting systemd user target \"autostart.target\""
|
log "Starting systemd user target \"autostart.target\""
|
||||||
systemctl --user start autostart.target >>"${LOGFILE}" 2>&1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exec >> "$LOGFILE" 2>&1
|
exec >> "$LOGFILE" 2>&1
|
||||||
|
|||||||
@@ -208,9 +208,9 @@ tmp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kubectl_pod() {
|
kubectl_pod() {
|
||||||
kubectl get -n "${1}" pods --field-selector=status.phase=Running --selector=${2} -o jsonpath='{.items[*].metadata.name}'
|
kubectl-env mycloud get -n "${1}" pods --field-selector=status.phase=Running --selector=${2} -o jsonpath='{.items[*].metadata.name}'
|
||||||
}
|
}
|
||||||
|
|
||||||
kubectl_deployment() {
|
kubectl_deployment() {
|
||||||
kubectl get -n "${1}" deployment --selector=${2} -o jsonpath='{.items[*].metadata.name}'
|
kubectl-env mycloud get -n "${1}" deployment --selector=${2} -o jsonpath='{.items[*].metadata.name}'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user