Compare commits
224 Commits
a8d17796e6
...
test2
| Author | SHA1 | Date | |
|---|---|---|---|
| f7d448f63b | |||
| 2a9a66fb06 | |||
| a29940a65a | |||
| d283bcddcd | |||
| efb3e54dcb | |||
| 872c9314e9 | |||
| 84c738ce64 | |||
| d814a13602 | |||
| 35b7ff0567 | |||
| ee10eb8779 | |||
| cc69e21613 | |||
| 0c6ffc6dbd | |||
| c21a76907c | |||
| 36dcdad8b7 | |||
| 3215c88ee1 | |||
| d2509eb0aa | |||
| d7305dc070 | |||
| 95a87d5112 | |||
| 9c11f4b357 | |||
| 05b7b53677 | |||
| 9170f6af1d | |||
| 14270d4217 | |||
| 214de1d2a2 | |||
| 8e22012b23 | |||
| bf44b943ac | |||
| fef4fd5ce1 | |||
| 2aa6073b5e | |||
| f722d06a28 | |||
| ec32037212 | |||
| 375935205e | |||
| 6b29f628db | |||
| 5890dd13d6 | |||
| 58dd4470fa | |||
| 680762b999 | |||
| 96ba4fd0b3 | |||
| b0b5833502 | |||
| 18c73ef8f1 | |||
| 9385652e8b | |||
| 5198256bf7 | |||
| 67ac6797df | |||
| 7703621506 | |||
| 0e125af3f7 | |||
| a9850d527c | |||
| cc6f4cb102 | |||
|
|
8d59331de5 | ||
|
|
066308e9ae | ||
|
|
6159d33cd6 | ||
| c70c39f28f | |||
| 468f1ee9c0 | |||
| bad23c0796 | |||
| d1b302a234 | |||
| 6fa75cad60 | |||
| f24e48d5cd | |||
| 579e97a3be | |||
| ba7153ce4a | |||
| 48d4788e55 | |||
| b9b12d07a3 | |||
| 4c998c4a21 | |||
| 7e119171dd | |||
| 2f339474e8 | |||
| 7d100dbbe5 | |||
| d03d13975f | |||
| cd0f9ab719 | |||
| c791055d7f | |||
| 9ac0a9895c | |||
| 7aea9806ad | |||
| a3e3c88204 | |||
| 5cbbf5e777 | |||
| 4b442be5ac | |||
| 87d8a43119 | |||
| 3f9dd1a39a | |||
| 91a3099822 | |||
| 78ec2715bd | |||
| cd937acc60 | |||
| c0b9631ecf | |||
| 06e2e847e9 | |||
| a14e884302 | |||
| d719481f4d | |||
| 3bb8f8bd56 | |||
| a71f9b7bc5 | |||
| 3cf49371e1 | |||
| 69f6ba29fc | |||
| 52525ba8ce | |||
| 19ca3f7980 | |||
| cf12e48c41 | |||
| b2b80a7ba4 | |||
| 903f6975fc | |||
|
|
284387581e | ||
| 1e05fe61f0 | |||
| 9f4cebde56 | |||
| 296f3e9f76 | |||
| bd7c4d270d | |||
| 617f63ed17 | |||
| 5ba2bda934 | |||
| 73c18fa7b7 | |||
| 546c08a28e | |||
| 40f08b3783 | |||
| 90fd75b2ba | |||
| 442e6e0986 | |||
| be07205cbb | |||
| 0c1ddd96c3 | |||
| abd7b450c9 | |||
| 7b92000dde | |||
| 7f5e51651a | |||
| f9cbe9fbea | |||
| ab75df4095 | |||
| 2668f4ffad | |||
| 1e706c8ed9 | |||
| 4f0f775a5d | |||
| c737c3a0f4 | |||
| fd3c106b29 | |||
| 1405b0621d | |||
| 75af2aba0f | |||
| 65455aff68 | |||
| da77ab91c7 | |||
| 03fbae33e4 | |||
| f844c3cc48 | |||
| f88cbf2a32 | |||
| adb32321a3 | |||
| 18b32adfc9 | |||
| 8f850ec2c8 | |||
| 73fe37e50f | |||
| 5e8820da53 | |||
| 7e0a937516 | |||
| ea1b3ecc3d | |||
| b4f502e964 | |||
| f84ed5f28d | |||
| 89799c2ccd | |||
| c51a326278 | |||
| cedecc54b9 | |||
| 0b01fd236e | |||
| 6e518966e0 | |||
| e8f2888ead | |||
| d9bb925581 | |||
| eac0c05a56 | |||
| ea512bb92d | |||
| 06bdbb608c | |||
| d5c8aaa6d8 | |||
| 60667c81a2 | |||
| c194f06137 | |||
| f93ce57d11 | |||
| cc3dcb9979 | |||
| d0c39c4dc6 | |||
| 42b8685182 | |||
| e369cf1917 | |||
| 10dd7a588e | |||
| b733b560b8 | |||
| 55b494a045 | |||
| db7e251b94 | |||
| 76de35c9a0 | |||
| 73a26bb372 | |||
| 7eefa3c800 | |||
| 959dc9dd80 | |||
| 614e3434e8 | |||
| c9d1fa8b0f | |||
| fa756766e5 | |||
| 4f4a9b919f | |||
| d086928ecc | |||
| 6008fb53db | |||
| 3fceca6d87 | |||
| aea05be674 | |||
| b9a9097f95 | |||
| d9dd1e7acf | |||
| 2018e47525 | |||
| d946aa4b4c | |||
| 408595d7e1 | |||
| b924e780c3 | |||
| e3158e02e4 | |||
| a706259322 | |||
| 20f7fe43d2 | |||
| b678d929ff | |||
| 9e5d3c5262 | |||
| cad6720173 | |||
| 0866a310cc | |||
|
|
a35d7d78e1 | ||
| 2128028113 | |||
| cc6a0673b9 | |||
| c859f7f76c | |||
| 1907fb2547 | |||
| 7b20ee2875 | |||
| 513e401099 | |||
| 1b22fe6116 | |||
| c6a056b77c | |||
| 236954d557 | |||
| f1c9e4a6f3 | |||
| c12185af79 | |||
| 57d3c570c0 | |||
| 8d3a4ff778 | |||
| ffb295d858 | |||
| fb3c3d8c19 | |||
| 41abaf2533 | |||
| b83ced88a5 | |||
| 9723753b5b | |||
| d2d2ddace4 | |||
|
|
eb31b393e9 | ||
| d74d7866ff | |||
| 75fdf52586 | |||
|
|
bdb0fd00bd | ||
|
|
2ae40edccc | ||
| 825ff4e770 | |||
| 2b9d974659 | |||
| 2895c33fbc | |||
| 5c3cf1b887 | |||
| a0968ba34a | |||
| 71a0886d46 | |||
|
|
83c9d72afe | ||
|
|
39b45df38e | ||
|
|
55477c5919 | ||
|
|
fd2a274668 | ||
|
|
613f249f64 | ||
|
|
9ac25a152d | ||
|
|
735568adfa | ||
|
|
5a803a578b | ||
|
|
818ac7ef8c | ||
|
|
c22d769ab5 | ||
|
|
96765dbf76 | ||
|
|
6f2e7d20b4 | ||
|
|
b742d63193 | ||
|
|
d78ba65063 | ||
|
|
7231b614fa | ||
|
|
f174a4e558 | ||
|
|
8c18407688 | ||
|
|
a396c0c739 | ||
|
|
d6ecdeb796 |
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
||||
[submodule "contrib/vim-plug"]
|
||||
path = contrib/vim-plug
|
||||
url = https://github.com/junegunn/vim-plug
|
||||
[submodule "ansible_roles/firefox"]
|
||||
path = ansible_roles/firefox
|
||||
url = https://github.com/staticdev/ansible-role-firefox
|
||||
|
||||
10
Makefile
10
Makefile
@@ -3,19 +3,15 @@ requirements = requirements.txt
|
||||
activate = . $(venv)/bin/activate
|
||||
pip = pip
|
||||
ansible = venv/bin/ansible-playbook
|
||||
ansible_run = $(activate) && ansible-playbook --inventory localhost, --diff --verbose ./playbook.yml ${ANSIBLE_EXTRA_ARGS}
|
||||
ansible_run = $(activate) && ansible-playbook -e ansible_python_interpreter=/usr/bin/python3 --inventory localhost, --diff --verbose ./playbook.yml ${ANSIBLE_EXTRA_ARGS}
|
||||
|
||||
.PHONY: all
|
||||
all: $(ansible)
|
||||
all: | venv $(ansible)
|
||||
$(ansible_run)
|
||||
|
||||
.PHONY: dryrun
|
||||
dryrun: $(ansible)
|
||||
$(ansible_run) --check
|
||||
|
||||
.PHONY: update
|
||||
update: $(ansible)
|
||||
$(ansible_run) --tags update_system
|
||||
$(ansible_run) --tags update
|
||||
|
||||
.PHONY: reboot
|
||||
reboot:
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
font_size: 12
|
||||
letter_space: 0
|
||||
terminal_binary: alacritty
|
||||
|
||||
gpu: amd
|
||||
|
||||
@@ -8,15 +6,29 @@ users:
|
||||
- name: hannes
|
||||
vt: 1
|
||||
firefox_profiles:
|
||||
- name: 7kqv7aco.default-release
|
||||
default:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- passff
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
- floccus
|
||||
manage_css: true
|
||||
mail: hannes@hkoerber.de
|
||||
git_gpg_sign: false
|
||||
gpg_agent: true
|
||||
gpg_keys:
|
||||
master_key: "0xB5C002530C6A2053"
|
||||
gpg_agent_for_ssh: true
|
||||
gpg_key:
|
||||
email: hannes@hkoerber.de
|
||||
id: "0xB5C002530C6A2053"
|
||||
fingerprint: "973AE48D71B76735C4712B5BB5C002530C6A2053"
|
||||
enable_passwordstore: true
|
||||
environment:
|
||||
MACHINE_HAS_NEXTCLOUD: "true"
|
||||
has_yubikey: true
|
||||
repositories:
|
||||
- personal_projects
|
||||
|
||||
screen:
|
||||
1: DisplayPort-0
|
||||
@@ -30,15 +42,19 @@ screen:
|
||||
9: DisplayPort-0
|
||||
0: DisplayPort-0
|
||||
|
||||
screencfgs: []
|
||||
|
||||
workspace:
|
||||
1: www
|
||||
9: comm
|
||||
10: music
|
||||
|
||||
environment:
|
||||
MACHINE_TYPE: "workstation"
|
||||
MACHINE_HAS_KEEPASSX: "false"
|
||||
MACHINE_HAS_NEXTCLOUD: "true"
|
||||
MACHINE_HAS_STEAM: "true"
|
||||
MACHINE_HAS_DISCORD: "true"
|
||||
MACHINE_HAS_RESTIC_BACKUP: "false"
|
||||
MACHINE_DEFAULT_SCREENPROFILE: "ares"
|
||||
MACHINE_HAS_ELEMENT: "true"
|
||||
MACHINE_RESOLUTION_X: "2560"
|
||||
MACHINE_RESOLUTION_Y: "1440"
|
||||
|
||||
90
_machines/mars.yml
Normal file
90
_machines/mars.yml
Normal file
@@ -0,0 +1,90 @@
|
||||
font_size: 12
|
||||
|
||||
users:
|
||||
- name: hannes-work
|
||||
group: hannes-work
|
||||
vt: 1
|
||||
firefox_profiles:
|
||||
default:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
manage_css: true
|
||||
meet:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
manage_css: false
|
||||
mail: hannes.koerber@tradebyte.com
|
||||
git_gpg_sign: false
|
||||
gpg_agent: false
|
||||
gpg_agent_for_ssh: false
|
||||
environment:
|
||||
MACHINE_HAS_NEXTCLOUD: "false"
|
||||
MACHINE_HAS_RESTIC_BACKUP: "true"
|
||||
MACHINE_HAS_ELEMENT: "false"
|
||||
MACHINE_HAS_KEEPASSX: "true"
|
||||
has_yubikey: false
|
||||
repositories: []
|
||||
- name: hannes-private
|
||||
group: hannes-private
|
||||
vt: 2
|
||||
firefox_profiles:
|
||||
default:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- passff
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
- floccus
|
||||
manage_css: true
|
||||
mail: hannes@hkoerber.de
|
||||
git_gpg_sign: false
|
||||
gpg_agent: true
|
||||
gpg_agent_for_ssh: true
|
||||
gpg_key:
|
||||
email: hannes@hkoerber.de
|
||||
id: "0xB5C002530C6A2053"
|
||||
fingerprint: "973AE48D71B76735C4712B5BB5C002530C6A2053"
|
||||
enable_passwordstore: true
|
||||
environment:
|
||||
MACHINE_HAS_NEXTCLOUD: "true"
|
||||
MACHINE_HAS_RESTIC_BACKUP: "false"
|
||||
MACHINE_HAS_ELEMENT: "true"
|
||||
MACHINE_HAS_KEEPASSX: "false"
|
||||
has_yubikey: true
|
||||
repositories:
|
||||
- personal_projects
|
||||
|
||||
screen:
|
||||
1: DP-1-1
|
||||
2: DP-1-1
|
||||
3: DP-1-2
|
||||
4: DP-1-2
|
||||
5: DP-1-2
|
||||
6: DP-1-2
|
||||
7: eDP-1
|
||||
8: eDP-1
|
||||
9: eDP-1
|
||||
0: eDP-1
|
||||
|
||||
workspace:
|
||||
1: www
|
||||
2: www
|
||||
3: term-local
|
||||
4: term-remote
|
||||
7: comm
|
||||
8: pass
|
||||
9: music
|
||||
10: pim
|
||||
|
||||
screencfgs:
|
||||
- name: three-screens
|
||||
key: F3
|
||||
|
||||
environment:
|
||||
MACHINE_TYPE: "laptop"
|
||||
MACHINE_RESOLUTION_X: "1920"
|
||||
MACHINE_RESOLUTION_Y: "1080"
|
||||
90
_machines/neptune.yml
Normal file
90
_machines/neptune.yml
Normal file
@@ -0,0 +1,90 @@
|
||||
font_size: 12
|
||||
|
||||
users:
|
||||
- name: hannes-work
|
||||
group: hannes-work
|
||||
vt: 1
|
||||
firefox_profiles:
|
||||
default:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
manage_css: true
|
||||
meet:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
manage_css: false
|
||||
mail: hannes.koerber@tradebyte.com
|
||||
git_gpg_sign: false
|
||||
gpg_agent: false
|
||||
gpg_agent_for_ssh: false
|
||||
environment:
|
||||
MACHINE_HAS_NEXTCLOUD: "false"
|
||||
MACHINE_HAS_RESTIC_BACKUP: "true"
|
||||
MACHINE_HAS_ELEMENT: "false"
|
||||
MACHINE_HAS_KEEPASSX: "true"
|
||||
has_yubikey: false
|
||||
repositories: []
|
||||
- name: hannes-private
|
||||
group: hannes-private
|
||||
vt: 2
|
||||
firefox_profiles:
|
||||
default:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- passff
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
- floccus
|
||||
manage_css: true
|
||||
mail: hannes@hkoerber.de
|
||||
git_gpg_sign: false
|
||||
gpg_agent: true
|
||||
gpg_agent_for_ssh: true
|
||||
gpg_key:
|
||||
email: hannes@hkoerber.de
|
||||
id: "0xB5C002530C6A2053"
|
||||
fingerprint: "973AE48D71B76735C4712B5BB5C002530C6A2053"
|
||||
enable_passwordstore: true
|
||||
environment:
|
||||
MACHINE_HAS_NEXTCLOUD: "true"
|
||||
MACHINE_HAS_RESTIC_BACKUP: "false"
|
||||
MACHINE_HAS_ELEMENT: "true"
|
||||
MACHINE_HAS_KEEPASSX: "false"
|
||||
has_yubikey: true
|
||||
repositories:
|
||||
- personal_projects
|
||||
|
||||
screen:
|
||||
1: DP-1-1
|
||||
2: DP-1-1
|
||||
3: DP-1-2
|
||||
4: DP-1-2
|
||||
5: DP-1-2
|
||||
6: DP-1-2
|
||||
7: eDP-1
|
||||
8: eDP-1
|
||||
9: eDP-1
|
||||
0: eDP-1
|
||||
|
||||
workspace:
|
||||
1: www
|
||||
2: www
|
||||
3: term-local
|
||||
4: term-remote
|
||||
7: comm
|
||||
8: pass
|
||||
9: music
|
||||
10: pim
|
||||
|
||||
screencfgs:
|
||||
- name: three-screens
|
||||
key: F3
|
||||
|
||||
environment:
|
||||
MACHINE_TYPE: "laptop"
|
||||
MACHINE_RESOLUTION_X: "1920"
|
||||
MACHINE_RESOLUTION_Y: "1080"
|
||||
@@ -1,55 +0,0 @@
|
||||
font_size: 11
|
||||
letter_space: 0
|
||||
terminal_binary: urxvt
|
||||
|
||||
users:
|
||||
- name: hannes-work
|
||||
group: hak
|
||||
vt: 1
|
||||
firefox_profiles:
|
||||
- name: 3wmp9hdb.default-1565075150057
|
||||
manage_css: true
|
||||
mail: hannes.koerber@tradebyte.com
|
||||
git_gpg_sign: false
|
||||
gpg_agent: false
|
||||
environment:
|
||||
MACHINE_HAS_NEXTCLOUD: "false"
|
||||
- name: hannes-private
|
||||
group: tpp
|
||||
vt: 2
|
||||
mail: hannes@hkoerber.de
|
||||
git_gpg_sign: false
|
||||
gpg_agent: true
|
||||
gpg_keys:
|
||||
master_key: "0xB5C002530C6A2053"
|
||||
environment:
|
||||
MACHINE_HAS_NEXTCLOUD: "true"
|
||||
|
||||
screen:
|
||||
1: DP-1-1
|
||||
2: DP-1-1
|
||||
3: DP-1-2
|
||||
4: DP-1-2
|
||||
5: DP-1-2
|
||||
6: DP-1-2
|
||||
7: eDP-1
|
||||
8: eDP-1
|
||||
9: eDP-1
|
||||
0: eDP-1
|
||||
|
||||
workspace:
|
||||
1: www
|
||||
2: www
|
||||
3: term-local
|
||||
4: term-remote
|
||||
7: comm
|
||||
8: pass
|
||||
9: music
|
||||
10: pim
|
||||
|
||||
environment:
|
||||
MACHINE_TYPE: "laptop"
|
||||
MACHINE_HAS_KEEPASSX: "true"
|
||||
MACHINE_HAS_RESTIC_BACKUP: "true"
|
||||
MACHINE_RESOLUTION_X: "1920"
|
||||
MACHINE_RESOLUTION_Y: "1080"
|
||||
@@ -14,14 +14,14 @@
|
||||
# Any items in the `env` entry below will be added as
|
||||
# environment variables. Some entries may override variables
|
||||
# set by alacritty itself.
|
||||
#env:
|
||||
env:
|
||||
# TERM variable
|
||||
#
|
||||
# This value is used to set the `$TERM` environment variable for
|
||||
# each instance of Alacritty. If it is not present, alacritty will
|
||||
# check the local terminfo database and use `alacritty` if it is
|
||||
# available, otherwise `xterm-256color` is used.
|
||||
#TERM: alacritty
|
||||
TERM: xterm-256color
|
||||
|
||||
window:
|
||||
# Window dimensions (changes require restart)
|
||||
@@ -75,10 +75,10 @@ window:
|
||||
#startup_mode: Windowed
|
||||
|
||||
# Window title
|
||||
#title: Alacritty
|
||||
title: "[terminal]"
|
||||
|
||||
# Allow terminal applications to change Alacritty's window title.
|
||||
#dynamic_title: true
|
||||
dynamic_title: true
|
||||
|
||||
# Window class (Linux/BSD only):
|
||||
#class:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
[defaults]
|
||||
retry_files_enabled = False
|
||||
nocows = 1
|
||||
roles_path = ./ansible_roles
|
||||
library = ./ansible_roles/firefox/library
|
||||
|
||||
1
ansible_roles/firefox
Submodule
1
ansible_roles/firefox
Submodule
Submodule ansible_roles/firefox added at fe50549acc
@@ -3,10 +3,12 @@ BindsTo=windowmanager.target
|
||||
After=windowmanager.target
|
||||
|
||||
Wants=blueman.service
|
||||
Wants=discord.service
|
||||
Wants=dpms.service
|
||||
Wants=dunst.service
|
||||
Wants=firefox.service
|
||||
Wants=element.service
|
||||
{% for profile in (user.firefox_profiles|default({})).keys() %}
|
||||
Wants=firefox@{{ profile }}.service
|
||||
{% endfor %}
|
||||
Wants=gpg-agent.service
|
||||
Wants=gnome-keyring.service
|
||||
Wants=keepassx.service
|
||||
@@ -21,7 +23,6 @@ Wants=screencfg.service
|
||||
Wants=spotify.service
|
||||
Wants=steam.service
|
||||
Wants=touchpad.service
|
||||
Wants=wallpaper.timer
|
||||
Wants=xresources.service
|
||||
Wants=yubikey-touch-detector.service
|
||||
|
||||
@@ -3,4 +3,6 @@ BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/blueman-applet
|
||||
ExecStart=/usr/bin/env blueman-applet
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
ConditionEnvironment=MACHINE_HAS_DISCORD=true
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/discord
|
||||
@@ -4,5 +4,7 @@ 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
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -3,4 +3,6 @@ BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/dunst -config %h/.config/dunstrc
|
||||
ExecStart=/usr/bin/env dunst -config %h/.config/dunstrc
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
11
autostart/services/element.service
Normal file
11
autostart/services/element.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
After=i3.service
|
||||
|
||||
ConditionPathExists=%h/.var/run/features/element
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env element-desktop
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
@@ -1,6 +0,0 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/firefox --setDefaultBrowser -P default
|
||||
8
autostart/services/firefox@.service
Normal file
8
autostart/services/firefox@.service
Normal file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env firefox --setDefaultBrowser -P %i
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
@@ -4,3 +4,5 @@ After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env gnome-keyring-daemon --start --foreground --components secrets
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
ConditionPathExists=%h/.var/run/features/gpg_agent
|
||||
|
||||
[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
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
[Service]
|
||||
Type=exec
|
||||
ExecStart=i3 --config %h/.i3/config
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/env i3 --config %h/.i3/config
|
||||
PassEnvironment=DISPLAY
|
||||
|
||||
Restart=no
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
ConditionEnvironment=MACHINE_HAS_KEEPASSX=true
|
||||
ConditionPathExists=%h/.var/run/features/keepassx
|
||||
|
||||
[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
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -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
|
||||
PassEnvironment=DISPLAY
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
ConditionEnvironment=MACHINE_TYPE=laptop
|
||||
ConditionPathExists=%h/.var/run/features/machine_is_laptop
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/bash -c 'grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup'
|
||||
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
|
||||
|
||||
@@ -3,7 +3,12 @@ BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
After=gnome-keyring.service
|
||||
|
||||
ConditionEnvironment=MACHINE_HAS_NEXTCLOUD=true
|
||||
ConditionPathExists=%h/.var/run/features/nextcloud
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/nextcloud --background
|
||||
ExecStart=/usr/bin/env nextcloud --background
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
MemoryHigh=20%
|
||||
MemoryMax=30%
|
||||
|
||||
@@ -3,4 +3,6 @@ BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/nm-applet
|
||||
ExecStart=/usr/bin/env nm-applet
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -3,4 +3,6 @@ BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/pasystray
|
||||
ExecStart=/usr/bin/env pasystray
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -3,4 +3,6 @@ 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
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
[Unit]
|
||||
ConditionEnvironment=MACHINE_HAS_RESTIC_BACKUP=true
|
||||
ConditionPathExists=%h/.var/run/features/restic_backup
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/bin/restic-backup
|
||||
RemainAfterExit=true
|
||||
PassEnvironment=DISPLAY
|
||||
|
||||
@@ -3,6 +3,4 @@ BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Timer]
|
||||
OnCalendar=Mon..Fri 09:00:00
|
||||
OnCalendar=Mon..Fri 12:00:00
|
||||
OnCalendar=Mon..Fri 16:00:00
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
ConditionEnvironment=MACHINE_DEFAULT_SCREENPROFILE
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
@@ -9,5 +8,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 screencfg "%h/.screencfg/%H/default.yml"
|
||||
RemainAfterExit=true
|
||||
PassEnvironment=DISPLAY
|
||||
|
||||
@@ -3,4 +3,6 @@ BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/spotify
|
||||
ExecStart=/usr/bin/env spotify
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -3,7 +3,9 @@ BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
After=i3.service
|
||||
|
||||
ConditionEnvironment=MACHINE_HAS_STEAM=true
|
||||
ConditionPathExists=%h/.var/run/features/steam
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/steam
|
||||
ExecStart=/usr/bin/env steam
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
ConditionEnvironment=MACHINE_TYPE=laptop
|
||||
ConditionPathExists=%h/.var/run/features/machine_is_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
|
||||
PassEnvironment=DISPLAY
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/setrandom --recursive --onlylarge --mode=stretch /usr/share/wallpapers
|
||||
RemainAfterExit=true
|
||||
@@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Timer]
|
||||
OnActiveSec=0s
|
||||
OnCalendar=hourly
|
||||
Unit=wallpaper.service
|
||||
RemainAfterElapse=true
|
||||
@@ -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
|
||||
PassEnvironment=DISPLAY
|
||||
|
||||
@@ -3,4 +3,6 @@ BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/yubikey-touch-detector -libnotify
|
||||
ExecStart=/usr/bin/env yubikey-touch-detector -libnotify
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
cd $HOME/sync/projects/time-tracking
|
||||
|
||||
cd ~/projects/personal/time-tracking/
|
||||
source venv/bin/activate
|
||||
source ~/.attendance_env
|
||||
|
||||
./call.py "${@}"
|
||||
@@ -1,16 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
rclone \
|
||||
--checksum \
|
||||
--delete-excluded \
|
||||
--exclude /.cache/ \
|
||||
--exclude /.vagrant.d/ \
|
||||
--exclude /.minikube/ \
|
||||
--exclude /Downloads/ \
|
||||
--exclude /downloads/ \
|
||||
--exclude /tmp/ \
|
||||
--verbose \
|
||||
--stats 60s \
|
||||
sync \
|
||||
$HOME \
|
||||
gdrive:backup
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
case "$1" in
|
||||
mycloud)
|
||||
shift
|
||||
command kubectl --kubeconfig=<(pass show mycloud/kubeconfig) "${@}"
|
||||
;;
|
||||
*)
|
||||
command kubectl "${@}"
|
||||
;;
|
||||
esac
|
||||
@@ -4,7 +4,7 @@ import sys
|
||||
import subprocess
|
||||
import yaml
|
||||
|
||||
PASS = 'pass'
|
||||
PASS = '/usr/bin/pass'
|
||||
|
||||
def run(args):
|
||||
return(subprocess.run(
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
nice --adjustment 19 \
|
||||
ionice --class 3 \
|
||||
restic -r rclone:restic:restic --password-file=$HOME/restic_password backup --exclude-file=$HOME/restic_exclude.lst $HOME
|
||||
@@ -31,7 +31,7 @@ args = parser.parse_args()
|
||||
config_path = args.config
|
||||
|
||||
try:
|
||||
config = yaml.load(open(config_path))
|
||||
config = yaml.safe_load(open(config_path))
|
||||
except FileNotFoundError:
|
||||
fail("File {0} not found".format(config_path))
|
||||
|
||||
@@ -54,6 +54,8 @@ for output in config['outputs']:
|
||||
# cmd.append('--auto')
|
||||
for k, v in output['opts'].items():
|
||||
cmd.extend(['--{}'.format(k), str(v)])
|
||||
for k,v in output.get('set', {}).items():
|
||||
cmd.extend(['--set', k, v])
|
||||
|
||||
run(cmd)
|
||||
run(['i3-msg', 'restart'])
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
~/code/helper-scripts/sysop-share-screen.sh pi@monitor-sysop-${1:-middle}-${2:-top} 1
|
||||
44
bin/since
44
bin/since
@@ -1,44 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import datetime
|
||||
import sys
|
||||
|
||||
USAGE="""Usage: {program} PATH_TO_FILE""".format(program=sys.argv[0])
|
||||
|
||||
def die(message, code=1):
|
||||
print(message)
|
||||
sys.exit(code)
|
||||
|
||||
def die_usage(code=1):
|
||||
die(USAGE, code)
|
||||
|
||||
def read_date_from_file(path):
|
||||
text = open(path).readline().strip()
|
||||
try:
|
||||
time = datetime.datetime.strptime(text, '%Y-%m-%d')
|
||||
except ValueError as e:
|
||||
die(e)
|
||||
return time
|
||||
|
||||
def main(argv):
|
||||
if len(argv) < 2:
|
||||
die_usage()
|
||||
last = read_date_from_file(argv[1])
|
||||
now = datetime.datetime.now()
|
||||
diff = now - last
|
||||
days = diff.days
|
||||
#hours = diff.seconds // (60 * 60)
|
||||
if days == 1:
|
||||
msg = "1 day"
|
||||
else:
|
||||
msg = "{days} days".format(days=days)
|
||||
|
||||
#msg += " "
|
||||
#if hours == 1:
|
||||
# msg += "1 hour "
|
||||
#else:
|
||||
# msg += "{hours} hours ".format(hours=hours)
|
||||
|
||||
print(msg)
|
||||
|
||||
main(sys.argv)
|
||||
19
detect-missing-packages.py
Executable file
19
detect-missing-packages.py
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import yaml
|
||||
from pprint import pprint
|
||||
|
||||
package_file = "./packages.yml"
|
||||
|
||||
apps = yaml.safe_load(open(package_file, 'r'))
|
||||
|
||||
missing_config = {}
|
||||
|
||||
for appname, appconfig in apps['packages']['list'].items():
|
||||
for distro, packagelist in appconfig.items():
|
||||
if len(packagelist) == 0:
|
||||
if distro not in missing_config.keys():
|
||||
missing_config[distro] = []
|
||||
missing_config[distro].append(appname)
|
||||
|
||||
print(yaml.dump(missing_config))
|
||||
@@ -14,6 +14,7 @@ dotfiles:
|
||||
to: .gnupg/dirmngr.conf
|
||||
- from: gnupg/gpg-agent.conf
|
||||
to: .gnupg/gpg-agent.conf
|
||||
template: true
|
||||
- from: gnupg/gpg.conf
|
||||
to: .gnupg/gpg.conf
|
||||
template: true
|
||||
@@ -60,8 +61,10 @@ dotfiles:
|
||||
to: .config/rofi/config
|
||||
- from: gtk/gtk-3.0.ini
|
||||
to: .config/gtk-3.0/settings.ini
|
||||
template: true
|
||||
- from: gtk/gtkrc-2.0
|
||||
to: .gtkrc-2.0
|
||||
template: true
|
||||
- from: qt/qt5ct.conf
|
||||
to: .config/qt5ct/qt5ct.conf
|
||||
- from: screencfg
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
# the top and down respectively.
|
||||
# The width can be negative. In this case the actual width is the
|
||||
# screen width minus the width defined in within the geometry option.
|
||||
geometry = "300x10-20+20"
|
||||
geometry = "300x10-20-40"
|
||||
|
||||
# Show how many messages are currently hidden (because of geometry).
|
||||
indicate_hidden = yes
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
email = {{ user.mail }}
|
||||
useConfigOnly = true
|
||||
{% if user.git_gpg_sign|bool %}
|
||||
signingkey = {{ user.gpg_keys.master_key }}
|
||||
signingkey = {{ user.gpg_key.id }}
|
||||
{% endif %}
|
||||
[github]
|
||||
user = hakoerber
|
||||
@@ -113,6 +113,7 @@
|
||||
requireForce = true
|
||||
[pull]
|
||||
rebase = true
|
||||
ff = only
|
||||
|
||||
[url "ssh://git@code.hkoerber.de:2222/"]
|
||||
insteadOf = https://code.hkoerber.de/
|
||||
|
||||
@@ -4,6 +4,8 @@ default-cache-ttl-ssh 60480000
|
||||
max-cache-ttl 34560000
|
||||
max-cache-ttl-ssh 34560000
|
||||
|
||||
{% if user.gpg_agent_for_ssh %}
|
||||
enable-ssh-support
|
||||
{% endif %}
|
||||
|
||||
pinentry-program /usr/bin/pinentry-qt
|
||||
109
gpgkeys/hannes@hkoerber.de.gpg.asc
Normal file
109
gpgkeys/hannes@hkoerber.de.gpg.asc
Normal file
@@ -0,0 +1,109 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
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
|
||||
imtrGD9EhItdmZ8PBdC2kAx3vWEM
|
||||
=553W
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
317
grm/personal_projects.toml
Normal file
317
grm/personal_projects.toml
Normal file
@@ -0,0 +1,317 @@
|
||||
[[trees]]
|
||||
root = "~/projects"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "misc/rbackupd"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "git@github.com:hakoerber/rbackupd.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "misc/cobbler-kickstart"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/cobbler-kickstart.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "misc/postfix-grok-patterns"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com/hakoerber/postfix-grok-patterns.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "upstream"
|
||||
url = "https://github.com/whyscream/postfix-grok-patterns.git"
|
||||
type = "https"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "misc/syncrepo"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com/hakoerber/syncrepo.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "misc/pkgbuilds"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com/hakoerber/pkgbuilds.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "misc/openvpn-helper"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/openvpn-helper.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "misc/wifiqr"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/wifi-qr.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "misc/checkconn"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/checkconn.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "misc/xftwidth"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com/hakoerber/xftwidth.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "upstream"
|
||||
url = "https://github.com/vixus0/xftwidth"
|
||||
type = "https"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "x-hidecursor"
|
||||
remotes = []
|
||||
|
||||
[[trees.repos]]
|
||||
name = "git-repo-manager"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/git-repo-manager.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hannes/git-repo-manager.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "talks"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com/hakoerber/talks.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "container/openresty-oidc"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/container/openresty-oidc.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "container/acimaker"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/acimaker.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "private"
|
||||
url = "git@code.sys.haktec.de:container/acimaker.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "container/drone-kaniko"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/container/drone-kaniko.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "upstream"
|
||||
url = "https://github.com/banzaicloud/drone-kaniko"
|
||||
type = "https"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "container/roundcube"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/container/roundcube.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "container/mycloud-homer"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/container/mycloud-homer.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "projects/misc/cobbler-kickstart"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com/hakoerber/cobbler-kickstart.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "finance-auto-import"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hannes/finance-auto-import.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "guitar_practice"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com/hakoerber/guitar-practice.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "picture-cleaner"
|
||||
remotes = []
|
||||
|
||||
[[trees.repos]]
|
||||
name = "mycloud"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hannes/mycloud.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "resume"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hannes/resume.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "lea-michael-hochzeit"
|
||||
remotes = []
|
||||
|
||||
[[trees.repos]]
|
||||
name = "builddoc"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/builddoc.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "blog"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/blog.hkoerber.de.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hannes/blog.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "fizzbuzz"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/fizzbuzz.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "ggj/2018/the-lost-son"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com:niklas-heer/the-lost-son.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "ggj/2019-claim-your-world"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com:theintroverts/claim-your-world.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "prometheus-restic-backblaze"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/prometheus-restic-backblaze.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/container/prometheus-restic-backblaze.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "dotfiles"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/dotfiles.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hannes/dotfiles.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "packager"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/packager.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hannes/packager.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "time-tracking"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/time-tracking.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hannes/time-tracking.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "aws-glacier-backup"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/aws-glacier-backup.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hakoerber/aws-glacier-backup.git"
|
||||
type = "ssh"
|
||||
@@ -1,7 +1,7 @@
|
||||
[Settings]
|
||||
gtk-theme-name=Breeze
|
||||
gtk-icon-theme-name=breeze-dark
|
||||
gtk-font-name=Cantarell 11
|
||||
gtk-font-name=DejaVu Sans {{ machine.font_size|int - 2 }}
|
||||
gtk-cursor-theme-name=breeze_cursors
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
@@ -1,10 +1,9 @@
|
||||
# DO NOT EDIT! This file will be overwritten by LXAppearance.
|
||||
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
|
||||
|
||||
include "/home/hannes/.gtkrc-2.0.mine"
|
||||
gtk-theme-name="Breeze"
|
||||
gtk-icon-theme-name="breeze-dark"
|
||||
gtk-font-name="Cantarell 11"
|
||||
gtk-font-name="DejaVu Sans {{ machine.font_size| int - 2 }}"
|
||||
gtk-cursor-theme-name="breeze_cursors"
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
37
i3/config.j2
37
i3/config.j2
@@ -17,8 +17,8 @@
|
||||
set $mod Mod4
|
||||
|
||||
# The default terminal
|
||||
set $terminal "{{ machine.terminal_binary }} --title terminal"
|
||||
set $calc "{{ machine.terminal_binary }} --title calc -e $SHELL -i -c calc"
|
||||
set $terminal "alacritty --config-file ~/.config/alacritty.yml"
|
||||
set $calc "alacritty --config-file ~/.config/alacritty.yml -e $SHELL -i -c calc"
|
||||
|
||||
set $scriptdir ~/.i3/scripts
|
||||
|
||||
@@ -77,8 +77,8 @@
|
||||
set $focus_parent q
|
||||
set $focus_child a
|
||||
|
||||
set $floating_toggle Shift+space
|
||||
set $focus_mode_toggle space
|
||||
set $floating_toggle Shift+p
|
||||
set $focus_mode_toggle p
|
||||
|
||||
set $prev_on_output u
|
||||
set $next_on_output i
|
||||
@@ -93,6 +93,8 @@
|
||||
|
||||
set $kill Shift+Q
|
||||
|
||||
set $screenshot o
|
||||
|
||||
|
||||
################################################################################
|
||||
### WORKSPACE ASSIGNMENTS ######################################################
|
||||
@@ -118,8 +120,8 @@ 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
|
||||
|
||||
assign [class="^dota2$"] $workspace10
|
||||
assign [class="^Wine$"] $workspace10
|
||||
@@ -212,15 +214,28 @@ assign [class="^Wine$"] $workspace10
|
||||
bindsym F2 exec --no-startup-id ~/.i3/scripts/screenmenu
|
||||
|
||||
bindsym $mod+F1 exec --no-startup-id ~/.i3/scripts/i3exit lock
|
||||
bindsym $mod+F2 exec --no-startup-id screencfg ~/.screencfg/all.yml ; exec systemctl --user restart keyboard.service
|
||||
bindsym $mod+F3 exec --no-startup-id screencfg ~/.screencfg/laptop.yml ; exec systemctl --user restart keyboard.service
|
||||
bindsym $mod+F2 exec --no-startup-id screencfg ~/.screencfg/{{ ansible_hostname }}/default.yml ; exec systemctl --user restart keyboard.service
|
||||
{% for screencfg in machine.screencfgs -%}
|
||||
bindsym $mod+{{ screencfg.key }} exec --no-startup-id screencfg ~/.screencfg/{{ ansible_hostname }}/{{ screencfg.name }}.yml ; exec systemctl --user restart keyboard.service
|
||||
{% endfor -%}
|
||||
bindsym $mod+F4 exec --no-startup-id ~/.i3/scripts/i3exit suspend
|
||||
bindsym $mod+Home exec --no-startup-id ~/.i3/scripts/shutdown-menu
|
||||
|
||||
bindsym $mod+$screenshot exec --no-startup-id sh -c 'maim | xclip -selection clipboard -t image/png'
|
||||
bindsym $mod+Shift+$screenshot exec --no-startup-id sh -c 'maim --select | xclip -selection clipboard -t image/png'
|
||||
|
||||
bindsym $mod+Shift+v exec --no-startup-id redshift-toggle
|
||||
|
||||
bindsym $mod+Shift+$scratchpad move scratchpad
|
||||
bindsym $mod+$scratchpad scratchpad show
|
||||
# bindsym $mod+$pim_toggle \
|
||||
# mark --add _source; \
|
||||
# focus output eDP-1; \
|
||||
# mark --add _origin; \
|
||||
# workspace $workspace10; \
|
||||
# mark --add _destination; \
|
||||
# [con_mark="^_destination$"] swap container with mark "_source"; \
|
||||
# [con_mark="^_source$"] focus; unmark _source; \
|
||||
# [con_mark="^_origin$"] focus; unmark _origin; \
|
||||
# [con_mark="^_destination$"] focus; unmark _destination; \
|
||||
|
||||
bindsym $mod+$pim_toggle \
|
||||
unmark _destination; \
|
||||
@@ -336,10 +351,8 @@ bindsym XF86AudioPrev exec $scriptdir/spotify-control previous
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 8 ; exec --no-startup-id $scriptdir/update-status
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 8 ; exec --no-startup-id $scriptdir/update-status
|
||||
|
||||
bindsym $mod+o exec --no-startup-id xautorandr ; exec --no-startup-id kill -SIGUSR2 $(cat $RUNDIR/wallchanger.$XDG_SESSION_ID.pid)'"
|
||||
bindsym $mod+p exec --no-startup-id kill -SIGUSR1 $(cat $RUNDIR/wallchanger.$XDG_SESSION_ID.pid)
|
||||
|
||||
bindsym $mod+m exec --no-startup-id $scriptdir/pa-volume mute-toggle-mic
|
||||
bindsym $mod+space exec --no-startup-id $scriptdir/pa-volume mute-toggle-mic
|
||||
|
||||
##############################################################################
|
||||
### BARS #######################################################################
|
||||
|
||||
@@ -19,10 +19,12 @@ general {
|
||||
}
|
||||
|
||||
|
||||
order += spotify
|
||||
{% if user.has_yubikey %}
|
||||
order += "yubikey"
|
||||
{% endif %}
|
||||
order += "volume_status output"
|
||||
order += "volume_status input"
|
||||
order += spotify
|
||||
order += "wifi"
|
||||
order += "external_script presentation_mode"
|
||||
order += "systemd redshift"
|
||||
@@ -33,7 +35,7 @@ order += "clock"
|
||||
|
||||
battery_level all {
|
||||
battery_id = "all"
|
||||
format = " {icon} {percent}% {time_remaining} "
|
||||
format = " {icon} {percent}% "
|
||||
measurement_mode = "sys"
|
||||
charging_character = ""
|
||||
blocks = ""
|
||||
@@ -57,7 +59,6 @@ systemd spotify {
|
||||
unit = "spotify.service"
|
||||
user = true
|
||||
format = " "
|
||||
on_click 1 = "exec $HOME/.i3/scripts/toggle-app spotify"
|
||||
color_bad = '#F4Bf75'
|
||||
color_degraded = '#F4Bf75'
|
||||
}
|
||||
@@ -109,7 +110,6 @@ volume_status output {
|
||||
thresholds = []
|
||||
command = "pactl"
|
||||
color_muted = '#FFFFFF'
|
||||
on_click 1 = "exec $HOME/.i3/scripts/pa-volume mute-toggle"
|
||||
}
|
||||
|
||||
volume_status input {
|
||||
@@ -120,5 +120,4 @@ volume_status input {
|
||||
command = "pactl"
|
||||
color_muted = '#FFFFFF'
|
||||
is_input = True
|
||||
on_click 1 = "exec $HOME/.i3/scripts/pa-volume mute-toggle-mic"
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
rofi -show combi -combi-modi run,drun -display-combi "run"
|
||||
rofi -show combi -combi-modi run -display-combi "run"
|
||||
|
||||
12
install.sh
12
install.sh
@@ -11,6 +11,8 @@ set -o nounset
|
||||
DOTDIR="/var/lib/dotfiles"
|
||||
_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
[[ -e './.git' ]] && git submodule update --init
|
||||
|
||||
if [[ "$(readlink "${_SCRIPT_DIR}")" != "${DOTDIR}" ]] && [[ "${_SCRIPT_DIR}" != "${DOTDIR}" ]] ; then
|
||||
if [[ -e "${DOTDIR}" ]] ; then
|
||||
2>&1 printf "${DOTDIR} already exists. This seems unsafe.\n"
|
||||
@@ -45,11 +47,14 @@ sudowrap() {
|
||||
fi
|
||||
}
|
||||
|
||||
cache_updated=0
|
||||
_install() {
|
||||
_package="$1" ; shift
|
||||
if [[ $NAME == "Fedora" ]] ; then
|
||||
sudowrap dnf install --assumeyes "${_package}"
|
||||
elif [[ $NAME == "Ubuntu" ]] ; then
|
||||
if [[ $NAME == "Ubuntu" ]] ; then
|
||||
if ! (( cache_updated )) ; then
|
||||
apt-get update
|
||||
cache_updated=1
|
||||
fi
|
||||
sudowrap apt-get install --assume-yes "${_package}"
|
||||
elif [[ $NAME == "Arch Linux" ]] ; then
|
||||
sudowrap pacman -S --noconfirm "${_package}"
|
||||
@@ -63,6 +68,7 @@ _install() {
|
||||
if ! command -v python3 >/dev/null ; then
|
||||
printf 'Python3 not installed, installing ...\n'
|
||||
_install "python3"
|
||||
_install "python3-venv"
|
||||
printf 'Done\n'
|
||||
fi
|
||||
|
||||
|
||||
271
packages.yml
271
packages.yml
@@ -1,55 +1,32 @@
|
||||
packages:
|
||||
list:
|
||||
build-essentials:
|
||||
fedora:
|
||||
- autoconf
|
||||
- automake
|
||||
- gcc-c++
|
||||
- gcc
|
||||
- ctags
|
||||
- cmake
|
||||
- libtool
|
||||
- elfutils-libelf-devel
|
||||
- maven
|
||||
ubuntu:
|
||||
- build-essential
|
||||
- exuberant-ctags
|
||||
- cmake
|
||||
archlinux:
|
||||
- gcc
|
||||
- ctags
|
||||
- cmake
|
||||
- maven
|
||||
- base-devel
|
||||
golang:
|
||||
fedora: ["golang", "glibc-static"]
|
||||
ubuntu: ["golang-go"]
|
||||
archlinux: ["go"]
|
||||
make:
|
||||
fedora: ["make"]
|
||||
ubuntu: ["make"]
|
||||
archlinux: ["make"]
|
||||
gdb:
|
||||
fedora: ["gdb"]
|
||||
ubuntu: ["gdb"]
|
||||
archlinux: ["gdb"]
|
||||
strace:
|
||||
fedora: ["strace"]
|
||||
ubuntu: ["strace"]
|
||||
archlinux: ["strace"]
|
||||
sudo:
|
||||
fedora: ["sudo"]
|
||||
ubuntu: ["sudo"]
|
||||
archlinux: ["sudo"]
|
||||
apt:
|
||||
fedora: []
|
||||
ubuntu: ["apt-file"]
|
||||
archlinux: []
|
||||
archlinux: [""]
|
||||
xorg:
|
||||
fedora:
|
||||
- '@base-x'
|
||||
- xorg-x11-drv-synaptics-legacy
|
||||
- xorg-x11-drv-libinput
|
||||
- libinput
|
||||
ubuntu: []
|
||||
archlinux:
|
||||
- xorg-server
|
||||
@@ -61,449 +38,369 @@ packages:
|
||||
- xorg-xset
|
||||
- xorg-xinit
|
||||
dmenu:
|
||||
fedora: ["dmenu"]
|
||||
ubuntu: ["dmenu"]
|
||||
archlinux: ["dmenu"]
|
||||
ansible:
|
||||
fedora: ["ansible"]
|
||||
ubuntu: ["ansible"]
|
||||
archlinux: ["ansible"]
|
||||
xdotool:
|
||||
fedora: ["xdotool"]
|
||||
ubuntu: ["xdotool"]
|
||||
archlinux: ["xdotool"]
|
||||
arandr:
|
||||
fedora: ["arandr"]
|
||||
ubuntu: ["arandr"]
|
||||
archlinux: ["arandr"]
|
||||
borgbackup:
|
||||
fedora: ["borgbackup"]
|
||||
ubuntu: ["borgbackup"]
|
||||
archlinux: ["borgbackup"]
|
||||
docker:
|
||||
fedora: ["docker"]
|
||||
ubuntu: ["docker.io"]
|
||||
ubuntu: ["docker.io", "containerd", "docker-compose"]
|
||||
archlinux: ["docker", "docker-compose"]
|
||||
font-awesome:
|
||||
fedora: ["fontawesome-fonts", "fontawesome-fonts-web"]
|
||||
ubuntu: ["fonts-font-awesome"]
|
||||
archlinux: ["ttf-font-awesome"]
|
||||
font-inconsolata:
|
||||
fedora: ["levien-inconsolata-fonts"]
|
||||
ubuntu: ["fonts-inconsolata"]
|
||||
archlinux: ["ttf-inconsolata"]
|
||||
font-dejavu:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["fonts-dejavu"]
|
||||
archlinux: ["ttf-dejavu"]
|
||||
font-libertine:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["fonts-linuxlibertine"]
|
||||
archlinux: ["ttf-linux-libertine"]
|
||||
font-emoji:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
archlinux: ["noto-fonts-emoji"]
|
||||
git:
|
||||
fedora: ["git", "gitk"]
|
||||
ubuntu: ["git", "git-extras", "gitk", "git-email"]
|
||||
# tk required for gitk
|
||||
archlinux: ["git", "tk"]
|
||||
htop:
|
||||
fedora: ["htop"]
|
||||
ubuntu: ["htop"]
|
||||
archlinux: ["htop"]
|
||||
feh:
|
||||
fedora: ["feh"]
|
||||
ubuntu: ["feh"]
|
||||
archlinux: ["feh"]
|
||||
i3:
|
||||
fedora: ["i3"]
|
||||
ubuntu: ["i3"]
|
||||
archlinux: ["i3-wm"]
|
||||
i3lock:
|
||||
fedora: ["i3lock"]
|
||||
ubuntu: ["i3lock"]
|
||||
archlinux: ["i3lock"]
|
||||
pluma:
|
||||
fedora: ["pluma"]
|
||||
ubuntu: ["pluma"]
|
||||
archlinux: ["pluma"]
|
||||
vim:
|
||||
fedora: ["vim-enhanced"]
|
||||
ubuntu: ["vim"]
|
||||
archlinux: ["gvim"]
|
||||
neovim:
|
||||
fedora: ["neovim", "python3-neovim"]
|
||||
ubuntu: ["neovim"]
|
||||
archlinux: ["neovim", "python-pynvim"]
|
||||
network-manager-applet:
|
||||
fedora: ["network-manager-applet"]
|
||||
ubuntu: []
|
||||
archlinux: ["network-manager-applet"]
|
||||
pasystray:
|
||||
fedora: ["pasystray"]
|
||||
ubuntu: ["pasystray"]
|
||||
archlinux: ["pasystray"]
|
||||
redshift:
|
||||
fedora: ["redshift-gtk"]
|
||||
ubuntu: ["redshift-gtk"]
|
||||
archlinux: ["redshift"]
|
||||
pavucontrol:
|
||||
fedora: ["pavucontrol"]
|
||||
ubuntu: ["pavucontrol"]
|
||||
archlinux: ["pavucontrol-qt"]
|
||||
pinentry-qt:
|
||||
fedora: ["pinentry", "pinentry-curses", "pinentry-qt"]
|
||||
ubuntu: ["pinentry-curses", "pinentry-qt"]
|
||||
archlinux: ["pinentry"]
|
||||
pinta:
|
||||
fedora: ["pinta"]
|
||||
ubuntu: ["pinta"]
|
||||
archlinux: ["pinta"]
|
||||
py3status:
|
||||
fedora: ["py3status", "python3-pytz", "python3-tzlocal"]
|
||||
ubuntu: ["py3status", "python3-arrow", "python3-tzlocal"]
|
||||
ubuntu: ["py3status", "python3-arrow", "python3-tzlocal", "python3-pydbus"]
|
||||
archlinux: ["py3status", "python-pytz", "python-tzlocal", "python-dbus", "python-pydbus"]
|
||||
pass:
|
||||
fedora: ["pass"]
|
||||
ubuntu: ["pass"]
|
||||
archlinux: ["pass", "passff-host"]
|
||||
keepassx:
|
||||
fedora: ["keepassx"]
|
||||
ubuntu: ["keepassx"]
|
||||
archlinux: []
|
||||
urxvt:
|
||||
fedora: ["rxvt-unicode-256color"]
|
||||
ubuntu: ["rxvt-unicode-256color"]
|
||||
archlinux: ["rxvt-unicode"]
|
||||
alacritty:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
archlinux: ["alacritty"]
|
||||
tmux:
|
||||
fedora: ["tmux"]
|
||||
ubuntu: ["tmux"]
|
||||
archlinux: ["tmux"]
|
||||
screen:
|
||||
fedora: ["screen"]
|
||||
ubuntu: ["screen"]
|
||||
archlinux: ["screen"]
|
||||
zsh:
|
||||
fedora: ["zsh", "zsh-syntax-highlighting"]
|
||||
ubuntu: ["zsh", "zsh-syntax-highlighting"]
|
||||
archlinux: ["zsh", "zsh-syntax-highlighting", "zsh-autosuggestions", "zsh-completions"]
|
||||
zathura:
|
||||
fedora: ["zathura-pdf-mupdf"]
|
||||
ubuntu: ["zathura", "zathura-pdf-poppler"]
|
||||
archlinux: ["zathura", "zathura-pdf-poppler"]
|
||||
pdf:
|
||||
ubuntu: ["ghostscript", "enscript"]
|
||||
archlinux: ["ghostscript", "enscript"]
|
||||
pandoc:
|
||||
fedora: ["pandoc"]
|
||||
ubuntu: ["pandoc"]
|
||||
ubuntu:
|
||||
- pandoc
|
||||
- texlive
|
||||
- python3-sphinxcontrib.svg2pdfconverter # for html to pdf conversions
|
||||
- texlive-latex-extra
|
||||
archlinux: ["pandoc", "texlive-core", "texlive-fontsextra", "texlive-latexextra"]
|
||||
libvirt:
|
||||
fedora: ["virt-manager", "libvirt-client"]
|
||||
ubuntu: ["virt-manager", "libvirt-bin"]
|
||||
archlinux: ["virt-manager", "libvirt"]
|
||||
ubuntu: ["virt-manager", "libvirt-daemon"]
|
||||
archlinux: ["virt-manager", "libvirt", "dnsmasq", "ebtables", "dmidecode"]
|
||||
firefox:
|
||||
fedora: ["firefox"]
|
||||
ubuntu: ["firefox"]
|
||||
archlinux: ["firefox"]
|
||||
ranger:
|
||||
fedora: ["ranger"]
|
||||
ubuntu: ["ranger"]
|
||||
archlinux: ["ranger"]
|
||||
thunar:
|
||||
fedora: ["thunar"]
|
||||
ubuntu: ["thunar"]
|
||||
archlinux: ["thunar"]
|
||||
unclutter:
|
||||
fedora: ["unclutter"]
|
||||
ubuntu: ["unclutter"]
|
||||
archlinux: ["unclutter"]
|
||||
chromium:
|
||||
fedora: ["chromium"]
|
||||
ubuntu: ["chromium-browser"]
|
||||
archlinux: ["chromium"]
|
||||
libreoffice:
|
||||
fedora: ["libreoffice", "libreoffice-langpack-de", "libreoffice-langpack-en"]
|
||||
ubuntu: ["libreoffice"]
|
||||
archlinux: ["libreoffice-fresh", "libreoffice-fresh-de"]
|
||||
qt-theming:
|
||||
fedora: ["breeze-cursor-theme", "breeze-icon-theme"]
|
||||
ubuntu: ["breeze-cursor-theme", "breeze-icon-theme", "breeze"]
|
||||
ubuntu: ["breeze-cursor-theme", "breeze-icon-theme", "breeze", "qt5ct"]
|
||||
archlinux: ["breeze", "breeze-icons", "breeze-grub", "qt5ct"]
|
||||
gtk-theming:
|
||||
fedora: ["breeze-gtk"]
|
||||
ubuntu: ["gtk3-engines-breeze"]
|
||||
ubuntu: ["gtk3-engines-breeze", "lxappearance"]
|
||||
archlinux: ["breeze-gtk", "lxappearance"]
|
||||
xcompmgr:
|
||||
fedora: ["xcompmgr"]
|
||||
ubuntu: ["xcompmgr"]
|
||||
archlinux: ["xcompmgr"]
|
||||
python:
|
||||
fedora: ["python", "python3-devel"]
|
||||
ubuntu: ["python3", "python3-pip", "python3-venv", "virtualenv", "pylint3"]
|
||||
archlinux: ["python3"]
|
||||
python-modules:
|
||||
ubuntu: []
|
||||
archlinux:
|
||||
- python-ruamel-yaml
|
||||
- python-gitpython
|
||||
- python-semver
|
||||
xbacklight:
|
||||
fedora: ["xbacklight"]
|
||||
ubuntu: ["xbacklight"]
|
||||
archlinux: ["xorg-xbacklight"]
|
||||
wireshark:
|
||||
fedora: ["wireshark"]
|
||||
ubuntu: ["wireshark", "wireshark-qt"]
|
||||
archlinux: ["wireshark-cli", "wireshark-qt"]
|
||||
dia:
|
||||
fedora: ["dia"]
|
||||
ubuntu: ["dia"]
|
||||
archlinux: ["dia"]
|
||||
shutter:
|
||||
fedora: ["shutter"]
|
||||
ubuntu: ["shutter"]
|
||||
archlinux: []
|
||||
nmap:
|
||||
fedora: ["nmap"]
|
||||
ubuntu: ["nmap"]
|
||||
archlinux: ["nmap"]
|
||||
openvpn:
|
||||
fedora: ["openvpn"]
|
||||
ubuntu: ["openvpn"]
|
||||
archlinux: ["openvpn"]
|
||||
curl:
|
||||
fedora: ["curl"]
|
||||
ubuntu: ["curl"]
|
||||
archlinux: ["curl"]
|
||||
wget:
|
||||
fedora: ["wget"]
|
||||
ubuntu: ["wget"]
|
||||
archlinux: ["wget"]
|
||||
tree:
|
||||
fedora: ["tree"]
|
||||
ubuntu: ["tree"]
|
||||
archlinux: ["tree"]
|
||||
which:
|
||||
fedora: ["which"]
|
||||
ubuntu: []
|
||||
archlinux: ["which"]
|
||||
zip:
|
||||
fedora: ["zip"]
|
||||
ubuntu: ["zip", "unzip"]
|
||||
archlinux: ["zip", "unzip"]
|
||||
traceroute:
|
||||
fedora: ["traceroute"]
|
||||
ubuntu: ["traceroute"]
|
||||
archlinux: ["traceroute"]
|
||||
tcpdump:
|
||||
fedora: ["tcpdump"]
|
||||
ubuntu: ["tcpdump"]
|
||||
archlinux: ["tcpdump"]
|
||||
tar:
|
||||
fedora: ["tar"]
|
||||
ubuntu: ["tar"]
|
||||
archlinux: ["tar"]
|
||||
rsync:
|
||||
fedora: ["rsync"]
|
||||
ubuntu: ["rsync"]
|
||||
archlinux: ["rsync"]
|
||||
net-tools:
|
||||
fedora: ["net-tools"]
|
||||
ubuntu: ["net-tools"]
|
||||
archlinux: ["net-tools"]
|
||||
ntfs:
|
||||
fedora: ["ntfs-3g", "ntfsprogs"]
|
||||
ubuntu: ["ntfs-3g"]
|
||||
archlinux: ["ntfs-3g"]
|
||||
lsof:
|
||||
fedora: ["lsof"]
|
||||
ubuntu: ["lsof"]
|
||||
archlinux: ["lsof"]
|
||||
iptables:
|
||||
fedora: ["iptables"]
|
||||
ubuntu: ["iptables"]
|
||||
archlinux: ["iptables"]
|
||||
archlinux: ["iptables-nft"]
|
||||
pwgen:
|
||||
fedora: ["pwgen"]
|
||||
ubuntu: ["pwgen"]
|
||||
archlinux: ["pwgen"]
|
||||
gpg:
|
||||
fedora: ["gnupg2", "paperkey", "yubikey-manager"]
|
||||
ubuntu: ["gnupg2"]
|
||||
ubuntu: ["gnupg2", "pcscd", "scdaemon"]
|
||||
archlinux: ["gnupg", "paperkey", "yubikey-manager", "yubikey-touch-detector"]
|
||||
networkmanager:
|
||||
fedora: ["NetworkManager", "NetworkManager-wifi"]
|
||||
ubuntu: ["network-manager", "network-manager-openvpn", "network-manager-openconnect"]
|
||||
ubuntu: ["network-manager", "network-manager-openvpn", "network-manager-openconnect", "network-manager-openconnect-gnome"]
|
||||
archlinux: ["networkmanager"]
|
||||
pulseaudio:
|
||||
fedora: ["pulseaudio", "pulseaudio-utils"]
|
||||
ubuntu: ["pulseaudio", "pulseaudio-utils"]
|
||||
archlinux: ["pulseaudio", "pulseaudio-alsa"]
|
||||
archlinux: ["pulseaudio", "pulseaudio-alsa", "lib32-libpulse"]
|
||||
iw:
|
||||
fedora: ["iw"]
|
||||
ubuntu: ["iw"]
|
||||
archlinux: ["iw"]
|
||||
cowsay:
|
||||
fedora: ["cowsay"]
|
||||
ubuntu: ["cowsay"]
|
||||
archlinux: ["cowsay"]
|
||||
ruby:
|
||||
fedora: ["ruby", "ruby-devel", "rubygem-bundler"]
|
||||
ubuntu: ["ruby", "ruby-dev", "ruby-bundler"]
|
||||
archlinux: ["ruby"]
|
||||
lxc:
|
||||
fedora: ["lxc"]
|
||||
ubuntu: ["lxc"]
|
||||
archlinux: ["lxc"]
|
||||
acpi:
|
||||
fedora: ["acpi"]
|
||||
ubuntu: ["acpid"]
|
||||
archlinux: ["acpi", "acpid"]
|
||||
npm:
|
||||
fedora: ["npm"]
|
||||
ubuntu: ["npm"]
|
||||
archlinux: ["npm"]
|
||||
xdg:
|
||||
fedora: ["xdg-utils"]
|
||||
ubuntu: ["xdg-utils"]
|
||||
archlinux: ["xdg-utils"]
|
||||
docs:
|
||||
fedora: ["man-pages"]
|
||||
ubuntu: ["manpages"]
|
||||
archlinux: ["man-pages"]
|
||||
compton:
|
||||
fedora: ["compton"]
|
||||
ubuntu: ["compton"]
|
||||
archlinux: []
|
||||
dunst:
|
||||
fedora: ["dunst"]
|
||||
ubuntu: ["dunst"]
|
||||
archlinux: ["dunst"]
|
||||
cloc:
|
||||
fedora: ["cloc"]
|
||||
ubuntu: ["cloc"]
|
||||
archlinux: ["cloc"]
|
||||
bluetooth:
|
||||
fedora: []
|
||||
ubuntu: ["blueman"]
|
||||
archlinux: ["bluez", "bluez-tools", "blueman"]
|
||||
autorandr:
|
||||
fedora: []
|
||||
ubuntu: ["autorandr"]
|
||||
archlinux: ["autorandr"]
|
||||
bwm-ng:
|
||||
fedora: []
|
||||
ubuntu: ["bwm-ng"]
|
||||
archlinux: ["bwm-ng"]
|
||||
virtualbox:
|
||||
fedora: []
|
||||
ubuntu: ["virtualbox"]
|
||||
archlinux: []
|
||||
archlinux: ["virtualbox"]
|
||||
ssh:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["ssh"]
|
||||
archlinux: ["openssh"]
|
||||
sshfs:
|
||||
fedora: []
|
||||
ubuntu: ["sshfs"]
|
||||
archlinux: ["sshfs"]
|
||||
expect:
|
||||
fedora: []
|
||||
ubuntu: ["expect"]
|
||||
archlinux: ["expect"]
|
||||
inotify:
|
||||
fedora: []
|
||||
ubuntu: ["inotify-tools"]
|
||||
archlinux: ["inotify-tools"]
|
||||
rclone:
|
||||
fedora: ["rclone"]
|
||||
ubuntu: ["rclone"]
|
||||
archlinux: ["rclone"]
|
||||
dnf:
|
||||
fedora: ["python3-dnf"]
|
||||
ubuntu: []
|
||||
archlinux: []
|
||||
rust:
|
||||
fedora: []
|
||||
ubuntu: ["rustc", "cargo"]
|
||||
archlinux: ["rust"]
|
||||
rustup:
|
||||
ubuntu: []
|
||||
archlinux: ["rustup"]
|
||||
musescore:
|
||||
fedora: []
|
||||
ubuntu: ["musescore"]
|
||||
ubuntu: ["musescore3"]
|
||||
archlinux: ["musescore"]
|
||||
sipcalc:
|
||||
fedora: []
|
||||
ubuntu: ["sipcalc"]
|
||||
archlinux: ["sipcalc"]
|
||||
rofi:
|
||||
fedora: []
|
||||
ubuntu: ["rofi"]
|
||||
archlinux: ["rofi"]
|
||||
anki:
|
||||
fedora: ["anki"]
|
||||
ubuntu: ["anki"]
|
||||
archlinux: ["anki"]
|
||||
imv:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["imv"]
|
||||
archlinux: ["imv"]
|
||||
pacman:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
archlinux: ["pacman", "pacman-contrib"]
|
||||
steam:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
archlinux: ["steam"]
|
||||
man:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["man-db", "manpages"]
|
||||
archlinux: ["man-db", "man-pages"]
|
||||
discord:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
archlinux: ["discord"]
|
||||
nextcloud:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["nextcloud-desktop"]
|
||||
archlinux: ["nextcloud-client"]
|
||||
kwallet:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
archlinux: ["kwallet", "kwalletmanager"]
|
||||
wallpapers:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
archlinux: ["elementary-wallpapers", "deepin-community-wallpapers"]
|
||||
wallutils:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
archlinux: ["wallutils"]
|
||||
pv:
|
||||
fedora: ["pv"]
|
||||
ubuntu: ["pv"]
|
||||
archlinux: ["pv"]
|
||||
stress:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["stress"]
|
||||
archlinux: ["stress"]
|
||||
mpris:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["playerctl"]
|
||||
archlinux: ["playerctl"]
|
||||
imagemagick:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["imagemagick"]
|
||||
archlinux: ["imagemagick"]
|
||||
mpv:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["mpv"]
|
||||
archlinux: ["mpv"]
|
||||
gnome-keyring:
|
||||
fedora: []
|
||||
ubuntu: []
|
||||
ubuntu: ["gnome-keyring"]
|
||||
archlinux: ["gnome-keyring"]
|
||||
element:
|
||||
ubuntu: []
|
||||
archlinux: ["element-desktop"]
|
||||
maim:
|
||||
ubuntu: ["maim"]
|
||||
archlinux: ["maim"]
|
||||
mkinitcpio:
|
||||
ubuntu: []
|
||||
archlinux: ["mkinitcpio"]
|
||||
terraform:
|
||||
ubuntu: []
|
||||
archlinux: ["terraform"]
|
||||
synclient:
|
||||
ubuntu: ["xserver-xorg-input-synaptics"]
|
||||
archlinux: ["xf86-input-synaptics"]
|
||||
ncdu:
|
||||
ubuntu: ["ncdu"]
|
||||
archlinux: ["ncdu"]
|
||||
font-utils:
|
||||
ubuntu: ["woff-tools", "woff2"]
|
||||
archinux: ["woff2"]
|
||||
|
||||
remove:
|
||||
mousepad:
|
||||
fedora: ["mousepad"]
|
||||
ubuntu: ["mousepad"]
|
||||
archlinux: ["mousepad"]
|
||||
chrome:
|
||||
ubuntu: ["google-chrome-stable"]
|
||||
archlinux: []
|
||||
snap:
|
||||
ubuntu: ["snapd"]
|
||||
archlinux: []
|
||||
golang:
|
||||
ubuntu: ["golang-go"]
|
||||
archlinux: ["go"]
|
||||
signal:
|
||||
ubuntu: []
|
||||
archlinux: ["signal-desktop"]
|
||||
vim:
|
||||
ubuntu: ["vim"]
|
||||
archlinux: ["gvim"]
|
||||
discord:
|
||||
ubuntu: []
|
||||
archlinux: ["discord"]
|
||||
rust:
|
||||
ubuntu: ["rustc", "cargo"]
|
||||
archlinux: ["rust"]
|
||||
|
||||
436
playbook.yml
436
playbook.yml
@@ -10,59 +10,45 @@
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: read variables
|
||||
include_vars:
|
||||
file: variables.yml
|
||||
tags:
|
||||
- always
|
||||
|
||||
- set_fact:
|
||||
distro: "{{ ansible_distribution|lower }}"
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Check for valid distro
|
||||
- name: check for valid distro
|
||||
assert:
|
||||
that: distro in ('fedora', 'ubuntu', 'archlinux')
|
||||
that: distro in ('ubuntu', 'archlinux')
|
||||
|
||||
- block:
|
||||
- block:
|
||||
- name: Update apt cache
|
||||
- name: update apt cache
|
||||
apt:
|
||||
update_cache: true
|
||||
become: true
|
||||
changed_when: false
|
||||
|
||||
- name: Upgrade system
|
||||
- name: upgrade system
|
||||
apt:
|
||||
upgrade: dist
|
||||
become: true
|
||||
|
||||
- name: Remove unused packages
|
||||
- name: remove unused packages
|
||||
apt:
|
||||
autoremove: true
|
||||
become: true
|
||||
|
||||
- name: Clean apt cache
|
||||
- name: clean apt cache
|
||||
apt:
|
||||
autoclean: true
|
||||
become: true
|
||||
when: distro == 'ubuntu'
|
||||
|
||||
- block:
|
||||
- name: Update dnf cache
|
||||
dnf:
|
||||
update_cache: true
|
||||
become: true
|
||||
|
||||
- name: Upgrade system
|
||||
dnf:
|
||||
name: '*'
|
||||
state: latest
|
||||
update_cache: false
|
||||
become: true
|
||||
|
||||
- name: Remove unused packages
|
||||
dnf:
|
||||
autoremove: true
|
||||
update_cache: false
|
||||
become: true
|
||||
when: distro == 'fedora'
|
||||
|
||||
- block:
|
||||
- name: enable multilib repository
|
||||
blockinfile:
|
||||
@@ -70,9 +56,19 @@
|
||||
block: |
|
||||
[multilib]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
marker: "# {mark} ANSIBLE MANAGED multilib"
|
||||
become: true
|
||||
|
||||
- name: Upgrade system
|
||||
- name: enable parallel download
|
||||
blockinfile:
|
||||
path: /etc/pacman.conf
|
||||
insertafter: '\[options\]'
|
||||
block: |
|
||||
ParallelDownloads = 5
|
||||
marker: "# {mark} ANSIBLE MANAGED parallel_download"
|
||||
become: true
|
||||
|
||||
- name: upgrade system
|
||||
pacman:
|
||||
upgrade: true
|
||||
update_cache: true
|
||||
@@ -82,35 +78,26 @@
|
||||
- name: install pacman-contrib for paccache
|
||||
package:
|
||||
name: pacman-contrib
|
||||
state: installed
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Clean cache
|
||||
- name: clean cache
|
||||
command: paccache -rk2 -ruk0
|
||||
become: true
|
||||
changed_when: false
|
||||
|
||||
when: distro == 'archlinux'
|
||||
tags: [update_system]
|
||||
|
||||
- name: install selinux specials on fedora
|
||||
dnf:
|
||||
state: installed
|
||||
name:
|
||||
- python3-libselinux
|
||||
- policycoreutils-python-utils
|
||||
become: true
|
||||
when: distro == 'fedora'
|
||||
tags: [update]
|
||||
|
||||
- block:
|
||||
- name: install sudo
|
||||
package:
|
||||
state: installed
|
||||
state: present
|
||||
name: sudo
|
||||
|
||||
- name: install dependencies for paru
|
||||
package:
|
||||
state: installed
|
||||
state: present
|
||||
name:
|
||||
- base-devel
|
||||
- git
|
||||
@@ -126,6 +113,26 @@
|
||||
create_home: true
|
||||
shell: /bin/bash
|
||||
system: true
|
||||
become: true
|
||||
|
||||
- name: create paru user on arch
|
||||
user:
|
||||
name: paru
|
||||
home: /var/lib/paru
|
||||
create_home: true
|
||||
shell: /bin/bash
|
||||
system: true
|
||||
become: true
|
||||
|
||||
- name: configure passwordless sudo for paru user
|
||||
copy:
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
dest: /etc/sudoers.d/paru
|
||||
content: |
|
||||
paru ALL=(ALL) NOPASSWD: /usr/bin/pacman
|
||||
become: true
|
||||
|
||||
- name: check if paru is already installed
|
||||
shell: |
|
||||
@@ -178,12 +185,11 @@
|
||||
include_vars:
|
||||
file: packages.yml
|
||||
|
||||
- name: enable neovim ppa
|
||||
apt_repository:
|
||||
repo: 'ppa:neovim-ppa/stable'
|
||||
update_cache: true
|
||||
- name: force-update iptables to iptables-nft on arch
|
||||
shell: pacman -Q iptables-nft || yes | pacman -S iptables-nft
|
||||
changed_when: false
|
||||
become: true
|
||||
when: distro == 'ubuntu'
|
||||
when: distro == 'archlinux'
|
||||
|
||||
- set_fact:
|
||||
defined_packages: "{{ packages|json_query('keys(list)') }}"
|
||||
@@ -208,7 +214,7 @@
|
||||
- name: install packages
|
||||
package:
|
||||
name: "{{ packages|json_query(query) }}"
|
||||
state: installed
|
||||
state: present
|
||||
become: true
|
||||
vars:
|
||||
query: "{{ 'list.*.%s[]'|format(distro) }}"
|
||||
@@ -246,7 +252,7 @@
|
||||
- name: install lz4
|
||||
package:
|
||||
name: lz4
|
||||
state: installed
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: use lz4 for mkinitcpio compression
|
||||
@@ -259,11 +265,6 @@
|
||||
- rebuild initrd
|
||||
when: distro == 'archlinux'
|
||||
|
||||
- set_fact:
|
||||
disable_services:
|
||||
- sshd
|
||||
when: distro == 'fedora'
|
||||
|
||||
- set_fact:
|
||||
disable_services:
|
||||
- ssh
|
||||
@@ -283,16 +284,6 @@
|
||||
become: true
|
||||
when: manage_services|default(true)|bool
|
||||
|
||||
- set_fact:
|
||||
enable_services:
|
||||
- NetworkManager
|
||||
# does not work with fedora 31 due to the switch to cgroups v2:
|
||||
# https://github.com/docker/cli/issues/2104
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1746355#c1
|
||||
# - docker
|
||||
- libvirtd
|
||||
when: distro == 'fedora'
|
||||
|
||||
- set_fact:
|
||||
enable_services:
|
||||
- NetworkManager
|
||||
@@ -377,7 +368,7 @@
|
||||
- lib32-libva-mesa-driver
|
||||
- mesa-vdpau
|
||||
- lib32-mesa-vdpau
|
||||
state: installed
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: set AMDGPU options
|
||||
@@ -399,6 +390,304 @@
|
||||
- distro == 'archlinux'
|
||||
- machine.gpu is defined and machine.gpu == 'amd'
|
||||
|
||||
- block:
|
||||
- name: create rust build user
|
||||
user:
|
||||
name: rust_build
|
||||
home: /var/lib/rust_build
|
||||
create_home: true
|
||||
shell: /bin/bash
|
||||
system: true
|
||||
become: true
|
||||
|
||||
- name: install rustup on ubuntu
|
||||
shell: curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
args:
|
||||
creates: /var/lib/rust_build/.cargo/bin/rustup
|
||||
become: true
|
||||
become_user: rust_build
|
||||
when: distro == 'ubuntu'
|
||||
|
||||
- name: add rustup stable toolchain
|
||||
shell: . ~/.cargo/env && rustup toolchain install stable && rustup default stable
|
||||
become: true
|
||||
become_user: rust_build
|
||||
changed_when: false
|
||||
|
||||
- name: update rustup stable toolchain
|
||||
shell: . ~/.cargo/env && rustup update stable
|
||||
become: true
|
||||
become_user: rust_build
|
||||
changed_when: false
|
||||
|
||||
- name: add rustup nightly toolchain
|
||||
shell: . ~/.cargo/env && rustup toolchain install nightly
|
||||
become: true
|
||||
become_user: rust_build
|
||||
changed_when: false
|
||||
|
||||
- name: update rustup nightly toolchain
|
||||
shell: . ~/.cargo/env && rustup update nightly
|
||||
become: true
|
||||
become_user: rust_build
|
||||
changed_when: false
|
||||
|
||||
- name: build rust crates from crates.io
|
||||
shell: |
|
||||
set -o errexit
|
||||
. ~/.cargo/env
|
||||
|
||||
rustup run {{ item.toolchain|default('stable') }} cargo install --version {{ item.version }} {{ item.crate }}
|
||||
mv /var/lib/rust_build/.cargo/bin/{{ item.binary }} /var/lib/rust_build/.cargo/bin/{{ item.binary }}.{{ item.version }}
|
||||
args:
|
||||
creates: /var/lib/rust_build/.cargo/bin/{{ item.binary }}.{{ item.version }}
|
||||
become: true # do not build as root!
|
||||
become_user: rust_build
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
when: item.source|default('crates.io') == 'crates.io'
|
||||
|
||||
- name: build rust crates from git
|
||||
shell: |
|
||||
set -o errexit
|
||||
. ~/.cargo/env
|
||||
rustup run {{ item.toolchain|default('stable') }} cargo install --git {{ item.url }} --branch {{ item.branch }}
|
||||
args:
|
||||
creates: /var/lib/rust_build/.cargo/bin/{{ item.binary }}
|
||||
become: true # do not build as root!
|
||||
become_user: rust_build
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
when: item.source|default('crates.io') == 'git'
|
||||
|
||||
- name: create target directory
|
||||
file:
|
||||
state: directory
|
||||
path: /usr/local/lib/binaries/
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0775'
|
||||
become: true
|
||||
|
||||
- name: move binaries for crates.io
|
||||
shell: |
|
||||
mv /var/lib/rust_build/.cargo/bin/{{ item.binary }}.{{ item.version }} /usr/local/lib/binaries/{{ item.binary }}.{{ item.version }}
|
||||
ln -s /usr/local/lib/binaries/{{ item.binary }}.{{ item.version }} /var/lib/rust_build/.cargo/bin/{{ item.binary }}.{{ item.version }}
|
||||
args:
|
||||
creates: /usr/local/lib/binaries/{{ item.binary }}.{{ item.version }}
|
||||
become: true
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
when: item.source|default('crates.io') == 'crates.io'
|
||||
|
||||
- name: move binaries for git
|
||||
shell: |
|
||||
mv /var/lib/rust_build/.cargo/bin/{{ item.binary }} /usr/local/lib/binaries/{{ item.binary }}
|
||||
ln -s /usr/local/lib/binaries/{{ item.binary }} /var/lib/rust_build/.cargo/bin/{{ item.binary }}
|
||||
args:
|
||||
creates: /usr/local/lib/binaries/{{ item.binary }}
|
||||
become: true
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
when: item.source|default('crates.io') == 'git'
|
||||
|
||||
- name: link binaries for crates.io
|
||||
file:
|
||||
src: /usr/local/lib/binaries/{{ item.binary }}.{{ item.version }}
|
||||
dest: /usr/local/bin/{{ item.binary }}
|
||||
owner: root
|
||||
group: root
|
||||
state: link
|
||||
force: true
|
||||
become: true
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
when: item.source|default('crates.io') == 'crates.io'
|
||||
|
||||
- name: link binaries for git
|
||||
file:
|
||||
src: /usr/local/lib/binaries/{{ item.binary }}
|
||||
dest: /usr/local/bin/{{ item.binary }}
|
||||
owner: root
|
||||
group: root
|
||||
state: link
|
||||
force: true
|
||||
become: true
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
when: item.source|default('crates.io') == 'git'
|
||||
tags:
|
||||
- rust_binaries
|
||||
|
||||
- block:
|
||||
- name: stat go target directory
|
||||
stat:
|
||||
path: /usr/local/go-v{{ go_version }}
|
||||
register: go_target_stat
|
||||
|
||||
- block:
|
||||
- name: create temporary directory for go download
|
||||
tempfile:
|
||||
state: directory
|
||||
register: go_download
|
||||
|
||||
- name: download go
|
||||
get_url:
|
||||
url: https://golang.org/dl/go{{ go_version }}.linux-amd64.tar.gz
|
||||
dest: "{{ go_download.path }}/go{{ go_version }}.linux-amd64.tar.gz"
|
||||
|
||||
- name: unpack go
|
||||
unarchive:
|
||||
src: "{{ go_download.path }}/go{{ go_version }}.linux-amd64.tar.gz"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0755'
|
||||
dest: "{{ go_download.path }}"
|
||||
remote_src: true
|
||||
become: true
|
||||
|
||||
- name: install new go version
|
||||
command: mv "{{ go_download.path }}/go/" /usr/local/go-v{{ go_version }}
|
||||
become: true
|
||||
|
||||
- name: clean up go download directory
|
||||
file:
|
||||
path: "{{ go_download.path }}"
|
||||
state: absent
|
||||
|
||||
when: not go_target_stat.stat.exists
|
||||
|
||||
- name: link to the current go version
|
||||
file:
|
||||
src: /usr/local/go-v{{ go_version }}
|
||||
dest: /usr/local/go
|
||||
owner: root
|
||||
group: root
|
||||
state: link
|
||||
force: true
|
||||
become: true
|
||||
|
||||
- name: add go directory to PATH and set GOROOT
|
||||
copy:
|
||||
dest: /etc/profile.d/go.sh
|
||||
content: |
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
export GOROOT=/usr/local/go
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
become: true
|
||||
|
||||
tags: [go]
|
||||
|
||||
- block:
|
||||
- name: install alacritty build dependencies
|
||||
package:
|
||||
state: present
|
||||
# https://github.com/alacritty/alacritty/blob/master/INSTALL.md#debianubuntu
|
||||
name:
|
||||
- cmake
|
||||
- pkg-config
|
||||
- libfreetype6-dev
|
||||
- libfontconfig1-dev
|
||||
- libxcb-xfixes0-dev
|
||||
- libxkbcommon-dev
|
||||
- python3
|
||||
become: true
|
||||
|
||||
- name: stat alacritty binary
|
||||
stat:
|
||||
path: /usr/local/bin/alacritty
|
||||
register: alacritty_binary
|
||||
|
||||
- name: create temporary directory for alacritty build
|
||||
tempfile:
|
||||
state: directory
|
||||
register: alacritty_build_tempdir
|
||||
when: not alacritty_binary.stat.exists
|
||||
|
||||
- name: build alacritty
|
||||
command: cargo install alacritty --root ./out
|
||||
args:
|
||||
chdir: "{{ alacritty_build_tempdir.path }}"
|
||||
when: not alacritty_binary.stat.exists
|
||||
|
||||
- name: install alacritty
|
||||
command: mv "{{ alacritty_build_tempdir.path }}/out/bin/alacritty" /usr/local/bin/alacritty
|
||||
become: true
|
||||
when: not alacritty_binary.stat.exists
|
||||
|
||||
- name: clean up build directory
|
||||
file:
|
||||
path: "{{ alacritty_build_tempdir.path }}"
|
||||
state: absent
|
||||
when: not alacritty_binary.stat.exists
|
||||
|
||||
when: distro == 'ubuntu'
|
||||
tags: [alacritty]
|
||||
|
||||
- block:
|
||||
- name: stat yubikey-touch-detector binary
|
||||
stat:
|
||||
path: /usr/local/bin/yubikey-touch-detector
|
||||
register: yubikey_touch_detector_binary
|
||||
|
||||
- name: create temporary directory for yubikey-touch-detector build
|
||||
tempfile:
|
||||
state: directory
|
||||
register: yubikey_touch_detector_build_tempdir
|
||||
when: not yubikey_touch_detector_binary.stat.exists
|
||||
|
||||
- name: build yubikey-touch-detector
|
||||
shell: sh -c 'PATH=/usr/local/go/bin:$PATH env GOROOT=/usr/local/go GOPATH=$(pwd) go get -u github.com/maximbaz/yubikey-touch-detector'
|
||||
args:
|
||||
chdir: "{{ yubikey_touch_detector_build_tempdir.path }}"
|
||||
when: not yubikey_touch_detector_binary.stat.exists
|
||||
|
||||
- name: install yubikey-touch-detector
|
||||
command: >
|
||||
mv
|
||||
"{{ yubikey_touch_detector_build_tempdir.path }}/bin/yubikey-touch-detector"
|
||||
/usr/local/bin/yubikey-touch-detector
|
||||
become: true
|
||||
when: not yubikey_touch_detector_binary.stat.exists
|
||||
|
||||
- name: clean up build directory
|
||||
file:
|
||||
path: "{{ yubikey_touch_detector_build_tempdir.path }}"
|
||||
state: absent
|
||||
when: not yubikey_touch_detector_binary.stat.exists
|
||||
|
||||
when: distro == 'ubuntu'
|
||||
tags: [yubikey-touch-detector]
|
||||
|
||||
- block:
|
||||
- block:
|
||||
- name: add spotify apt key
|
||||
apt_key:
|
||||
url: "https://download.spotify.com/debian/pubkey_0D811D58.gpg"
|
||||
id: "D1742AD60D811D58"
|
||||
become: true
|
||||
|
||||
- name: add spotify repository
|
||||
apt_repository:
|
||||
repo: "deb http://repository.spotify.com stable non-free"
|
||||
filename: spotify
|
||||
become: true
|
||||
|
||||
- name: install spotify
|
||||
apt:
|
||||
name: spotify-client
|
||||
update_cache: true
|
||||
become: true
|
||||
when: distro == 'ubuntu'
|
||||
|
||||
- block:
|
||||
- name: install spotify from AUR via paru
|
||||
shell: |
|
||||
curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | gpg --import
|
||||
yes 1 | paru --skipreview --aur --batchinstall --noconfirm -S spotify
|
||||
become: true
|
||||
become_user: paru
|
||||
args:
|
||||
creates: /usr/bin/spotify
|
||||
when: distro == 'archlinux'
|
||||
|
||||
tags: [spotify]
|
||||
|
||||
- name: create dotfiles group
|
||||
group:
|
||||
@@ -407,11 +696,22 @@
|
||||
become: true
|
||||
become_user: root
|
||||
|
||||
- name: create dotfiles user
|
||||
user:
|
||||
name: dotfiles
|
||||
group: dotfiles
|
||||
home: /var/lib/dotfiles
|
||||
create_home: false
|
||||
shell: /bin/bash
|
||||
system: true
|
||||
become: true
|
||||
become_user: root
|
||||
|
||||
- name: create dotfiles directory
|
||||
file:
|
||||
state: directory
|
||||
path: /var/lib/dotfiles
|
||||
owner: nobody
|
||||
owner: dotfiles
|
||||
group: dotfiles
|
||||
mode: '0775' # group needs write access!
|
||||
become: true
|
||||
@@ -428,6 +728,7 @@
|
||||
become: true
|
||||
become_user: "{{ user.name }}"
|
||||
with_items: "{{ users }}"
|
||||
no_log: True # less spam
|
||||
loop_control:
|
||||
loop_var: user
|
||||
tags:
|
||||
@@ -437,3 +738,8 @@
|
||||
- name: rebuild initrd
|
||||
command: mkinitcpio -P
|
||||
become: true
|
||||
register: mkinitcpio_cmd
|
||||
failed_when: >
|
||||
mkinitcpio_cmd.rc != 0
|
||||
and
|
||||
not (mkinitcpio_cmd.rc == 1 and "file not found: `fsck.overlay'" in mkinitcpio_cmd.stderr)
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
[Appearance]
|
||||
color_scheme_path=/usr/share/qt5ct/colors/airy.conf
|
||||
custom_palette=false
|
||||
icon_theme=breeze
|
||||
standard_dialogs=default
|
||||
style=Fusion
|
||||
|
||||
[Fonts]
|
||||
fixed=@Variant(\0\0\0@\0\0\0\x1e\0\x44\0\x65\0j\0\x61\0V\0u\0 \0L\0G\0\x43\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
|
||||
general=@Variant(\0\0\0@\0\0\0\x1e\0\x44\0\x65\0j\0\x61\0V\0u\0 \0L\0G\0\x43\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
|
||||
|
||||
[Interface]
|
||||
activate_item_on_single_click=1
|
||||
buttonbox_layout=0
|
||||
@@ -23,6 +18,3 @@ stylesheets=@Invalid()
|
||||
toolbutton_style=4
|
||||
underline_shortcut=1
|
||||
wheel_scroll_lines=3
|
||||
|
||||
[SettingsWindow]
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x16\0\0\t\xff\0\0\x5\x88\0\0\0\0\0\0\0\x16\0\0\t\xff\0\0\x5\x88\0\0\0\0\0\0\0\0\n\0\0\0\0\0\0\0\0\x16\0\0\t\xff\0\0\x5\x88)
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
ansible==2.10.4
|
||||
ansible-base==2.10.3
|
||||
cffi==1.14.4
|
||||
cryptography==3.2.1
|
||||
ipaddress==1.0.23
|
||||
Jinja2==2.11.2
|
||||
ansible==4.6.0
|
||||
ansible-core==2.11.5
|
||||
cffi==1.14.6
|
||||
cryptography==35.0.0
|
||||
Jinja2==3.0.1
|
||||
jmespath==0.10.0
|
||||
MarkupSafe==1.1.1
|
||||
packaging==20.7
|
||||
MarkupSafe==2.0.1
|
||||
packaging==21.0
|
||||
pycparser==2.20
|
||||
pyparsing==2.4.7
|
||||
PyYAML==5.3.1
|
||||
six==1.15.0
|
||||
PyYAML==5.4.1
|
||||
resolvelib==0.5.4
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o xtrace
|
||||
|
||||
xrandr --output DisplayPort-0 --mode 2560x1440 --primary --rate 144.00 --set TearFree on
|
||||
8
screencfg/ares/default.yml
Normal file
8
screencfg/ares/default.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
reset: true
|
||||
outputs:
|
||||
- name: DisplayPort-0
|
||||
opts:
|
||||
mode: 2560x1440
|
||||
rate: "144.00"
|
||||
set:
|
||||
TearFree: "on"
|
||||
14
screencfg/mars/default.yml
Normal file
14
screencfg/mars/default.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
reset: false
|
||||
outputs:
|
||||
- name: eDP-1
|
||||
primary: True
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
scale: 1x1
|
||||
pos: "0x0" # beware of hex
|
||||
- name: DP-1-1
|
||||
disable: true
|
||||
- name: DP-1-2
|
||||
disable: true
|
||||
- name: DP-1-3
|
||||
disable: true
|
||||
18
screencfg/mars/three-screens.yml
Normal file
18
screencfg/mars/three-screens.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
reset: true
|
||||
outputs:
|
||||
- name: eDP-1
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
scale: 0.7x0.7
|
||||
pos: "0x0" # beware of hex
|
||||
- name: DP-3
|
||||
primary: True
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
right-of: eDP-1
|
||||
reset: true
|
||||
- name: DP-4
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
right-of: DP-3
|
||||
reset: true
|
||||
14
screencfg/neptune/default.yml
Normal file
14
screencfg/neptune/default.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
reset: false
|
||||
outputs:
|
||||
- name: eDP-1
|
||||
primary: True
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
scale: 1x1
|
||||
pos: "0x0" # beware of hex
|
||||
- name: DP-1-1
|
||||
disable: true
|
||||
- name: DP-1-2
|
||||
disable: true
|
||||
- name: DP-1-3
|
||||
disable: true
|
||||
18
screencfg/neptune/three-screens.yml
Normal file
18
screencfg/neptune/three-screens.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
reset: true
|
||||
outputs:
|
||||
- name: eDP-1
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
scale: 0.7x0.7
|
||||
pos: "0x0" # beware of hex
|
||||
- name: DP-3
|
||||
primary: True
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
right-of: eDP-1
|
||||
reset: true
|
||||
- name: DP-4
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
right-of: DP-3
|
||||
reset: true
|
||||
@@ -1,6 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
read -p "Make sure that gothic was installed via Steam! <Enter> to continue, <CTRL+C> to abort "
|
||||
# Steam setting: Proton 4.11-13
|
||||
#
|
||||
# * It *must not* have any symlinks for the directmusic dlls like:
|
||||
# pfx/dosdevices/c:/windows/syswow64/dmusic.dll
|
||||
|
||||
STEAMAPPS=/var/games/steamapps/
|
||||
|
||||
read -p "Make sure that gothic was installed via Steam and started once! <Enter> to continue, <CTRL+C> to abort "
|
||||
|
||||
set -o nounset
|
||||
set -o xtrace
|
||||
@@ -11,20 +18,58 @@ downloaddir=~/download/gothic
|
||||
mkdir -p "${downloaddir}"
|
||||
cd "${downloaddir}"
|
||||
|
||||
curl -L -o gothic_patch_108k.exe "https://www.worldofgothic.de/download.php?id=15"
|
||||
curl -L -o gothic1_playerkit-1.08k.exe "https://www.worldofgothic.de/download.php?id=61"
|
||||
curl -L -o Definitive_Edition_1_4_2.exe "https://www.worldofgothic.de/download.php?id=1586"
|
||||
curl -L -O https://github.com/GothicFixTeam/GothicFix/releases/download/v1.8/G1Classic-SystemPack-1.8.exe
|
||||
curl -L -O https://github.com/GothicFixTeam/GothicFix/releases/download/v1.8/Gothic1_PlayerKit-2.8.exe
|
||||
curl -C - -L -o gothic_patch_108k.exe "https://www.worldofgothic.de/download.php?id=15"
|
||||
curl -C - -L -o gothic1_playerkit-1.08k.exe "https://www.worldofgothic.de/download.php?id=61"
|
||||
|
||||
read -p "During installation, use \"Z:\\var\\games\\steamapps\\common\\Gothic\\\" as the install directory! <Enter> to continue, <CTRL+C> to abort "
|
||||
curl -C - -L -o Definitive_Edition_1_4_5.exe "https://www.worldofgothic.de/download.php?id=1586"
|
||||
|
||||
export WINEPREFIX=/var/games/steamapps/compatdata/65540/pfx/
|
||||
# superseded by union
|
||||
curl -C - -L -O https://github.com/GothicFixTeam/GothicFix/releases/download/v1.8/G1Classic-SystemPack-1.8.exe
|
||||
|
||||
wine "${downloaddir}"/gothic1_playerkit-1.08k.exe
|
||||
wine "${downloaddir}"/Gothic1_PlayerKit-2.8.exe
|
||||
# curl -C - -L -O https://github.com/GothicFixTeam/GothicFix/releases/download/v1.8/Gothic1_PlayerKit-2.8.exe
|
||||
|
||||
curl -C - -L -o Ninja-2.5.09.exe "https://www.worldofgothic.de/download.php?id=1626"
|
||||
# curl -C - -L -o Union_1.0j_22.02.2021.exe "https://www.worldofgothic.de/download.php?id=1625"
|
||||
|
||||
curl -C - -L -o G1CP-1.0.0.exe "https://www.worldofgothic.de/download.php?id=1636"
|
||||
|
||||
#curl -C - -L -o Spine_1.29.0.exe "https://www.worldofgothic.de/download.php?id=1417"
|
||||
|
||||
curl -C - -L -o Gothic1-GD3D11-17.7-dev16.zip https://github.com/Kirides/GD3D11/releases/download/v17.7-dev16/Gothic1-GD3D11-17.7-dev16.zip
|
||||
curl -C - -L -o RiisisGothic1TextureMixV1.1.zip "https://www.worldofgothic.de/download.php?id=1458"
|
||||
|
||||
read -p 'During installation, use "Z:\var\games\steamapps\common\Gothic\" as the install directory! <Enter> to continue, <CTRL+C> to abort '
|
||||
|
||||
|
||||
export WINEPREFIX="${STEAMAPPS}/compatdata/65540/pfx/"
|
||||
|
||||
#winetricks dxvk
|
||||
winetricks directmusic
|
||||
|
||||
#read -p "In winecfg, go to Libraries tab, in 'existing overrides' search for 'dsound', select it and press remove button "
|
||||
#winecfg
|
||||
|
||||
# wine "${downloaddir}"/gothic_patch_108k.exe
|
||||
# wine "${downloaddir}"/gothic1_playerkit-1.08k.exe
|
||||
|
||||
# wine "${downloaddir}"/Gothic1_PlayerKit-2.8.exe
|
||||
wine "${downloaddir}"/G1Classic-SystemPack-1.8.exe
|
||||
wine "${downloaddir}"/Definitive_Edition_1_4_2.exe
|
||||
|
||||
wine "${downloaddir}"/Ninja-2.5.09.exe
|
||||
|
||||
# cmd="${WINEPREFIX}/dosdevices/c:/windows/syswow64/cmd.exe"
|
||||
# cmdtarget="$(readlink "${cmd}")"
|
||||
# rm "${WINEPREFIX}/dosdevices/c:/windows/syswow64/cmd.exe"
|
||||
# winetricks cmd # for union install
|
||||
# wine "${downloaddir}"/Union_1.0j_22.02.2021.exe
|
||||
# ln -sf "$cmdtarget" "$cmd"
|
||||
|
||||
wine "${downloaddir}"/G1CP-1.0.0.exe
|
||||
wine "${downloaddir}"/Definitive_Edition_1_4_5.exe
|
||||
|
||||
unzip -u "${downloaddir}"/Gothic1-GD3D11-17.7-dev16.zip -d "${STEAMAPPS}/common/Gothic/system"
|
||||
unzip -u "${downloaddir}"/RiisisGothic1TextureMixV1.1.zip -d "${STEAMAPPS}/common/Gothic/Data"
|
||||
|
||||
|
||||
read -p "Now run the game once and exit! <Enter> to continue, <CTRL+C> to abort "
|
||||
|
||||
@@ -33,22 +78,28 @@ cd /var/games/steamapps/common/Gothic
|
||||
sed -i 's/^playLogoVideos=.*$/playLogoVideos=0\r/' system/Gothic.ini
|
||||
sed -i 's/^sightValue=.*$/sightValue=14\r/' system/Gothic.ini
|
||||
sed -i 's/^modelDetail=.*$/modelDetail=1\r/' system/Gothic.ini
|
||||
sed -i 's/^subTitles=.*$/subTitles=0\r/' system/Gothic.ini
|
||||
sed -i 's/^bloodDetail=.*$/bloodDetail=3\r/' system/Gothic.ini
|
||||
sed -i 's/^subTitles=.*$/subTitles=1\r/' system/Gothic.ini
|
||||
sed -i 's/^animatedWindows=.*$/animatedWindows=0\r/' system/Gothic.ini
|
||||
sed -i 's/^bloodDetail=.*$/bloodDetail=2\r/' system/Gothic.ini
|
||||
sed -i 's/^zVidResFullscreenX=.*$/zVidResFullscreenX=2560\r/' system/Gothic.ini
|
||||
sed -i 's/^zVidResFullscreenY=.*$/zVidResFullscreenY=1440\r/' system/Gothic.ini
|
||||
sed -i 's/^zDetailTexturesEnabled=.*$/zDetailTexturesEnabled=1\r/' system/Gothic.ini
|
||||
sed -i 's/^zSubdivSurfacesEnabled=.*$/zSubdivSurfacesEnabled=1\r/' system/Gothic.ini
|
||||
|
||||
sed -i 's/^SimpleWindow=.*$/SimpleWindow=0\r/' system/SystemPack.ini
|
||||
sed -i 's/^Gothic2_Control=.*$/Gothic2_Control=1\r/' system/SystemPack.ini
|
||||
sed -i 's/^USInternationalKeyboardLayout=.*$/USInternationalKeyboardLayout=0\r/' system/SystemPack.ini
|
||||
sed -i 's/^FPS_Limit=.*$/FPS_Limit=144\r/' system/SystemPack.ini
|
||||
sed -i 's/^VerticalFOV=.*$/VerticalFOV=50.625\r/' system/SystemPack.ini
|
||||
sed -i 's/^VerticalFOV=.*$/VerticalFOV=85\r/' system/SystemPack.ini
|
||||
|
||||
sed -i 's/^OutDoorPortalDistanceMultiplier=.*$/OutDoorPortalDistanceMultiplier=3\r/' system/SystemPack.ini
|
||||
sed -i 's/^InDoorPortalDistanceMultiplier=.*$/InDoorPortalDistanceMultiplier=3\r/' system/SystemPack.ini
|
||||
sed -i 's/^WoodPortalDistanceMultiplier=.*$/WoodPortalDistanceMultiplier=3\r/' system/SystemPack.ini
|
||||
sed -i 's/^DrawDistanceMultiplier=.*$/DrawDistanceMultiplier=3\r/' system/SystemPack.ini
|
||||
|
||||
sed -i 's/^keyDelayRate=.*$/keyDelayRate=50\r/' system/SystemPack.ini
|
||||
sed -i 's/^keyDelayFirst=.*$/keyDelayFirst=150\r/' system/SystemPack.ini
|
||||
|
||||
sed -i 's/^HideFocus=.*$/HideFocus=0\r/' system/SystemPack.ini
|
||||
|
||||
sed -i 's/^Scale=.*$/Scale=1.9\r/' system/SystemPack.ini
|
||||
|
||||
183
scripts/install-gothic2.sh
Executable file
183
scripts/install-gothic2.sh
Executable file
@@ -0,0 +1,183 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o nounset
|
||||
set -o xtrace
|
||||
set -o errexit
|
||||
|
||||
BASEDIR=/var/games/gothic2
|
||||
|
||||
export GAMEDATA=${BASEDIR}/data/
|
||||
export ARCHIVE=${BASEDIR}/gothic2.data.tar.zstd
|
||||
export WINEPREFIX=${BASEDIR}/wineprefix
|
||||
export WINEARCH=win64
|
||||
|
||||
export WINEVERSION=6.3
|
||||
|
||||
DOWNLOADDIR=~/download/gothic2
|
||||
|
||||
mkdir -p "${WINEPREFIX}"
|
||||
|
||||
if [[ "$(wine --version)" != "wine-${WINEVERSION}" ]] ; then
|
||||
printf '%s\n' "Wine version ${WINEVERSION} required" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
archive() {
|
||||
origin="$1"
|
||||
if [[ -e "${ARCHIVE}" ]] ; then
|
||||
return
|
||||
fi
|
||||
tar -cv --zstd -p -f "${ARCHIVE}" -C "$1" .
|
||||
}
|
||||
|
||||
extract() {
|
||||
if [[ -e "${GAMEDATA}" ]] ; then
|
||||
return
|
||||
fi
|
||||
|
||||
mkdir -p "${GAMEDATA}"
|
||||
tar x --zstd -f "${ARCHIVE}" -C "${GAMEDATA}"
|
||||
}
|
||||
|
||||
start() {
|
||||
# For the DX11 renderer, PWD has to be the folder containing the "GD3D11" folder
|
||||
cd "${GAMEDATA}/system/"
|
||||
|
||||
# There is a bug in the DX11 renderer that leads to the mouse cursor always
|
||||
# being visible
|
||||
#
|
||||
# See https://bugs.winehq.org/show_bug.cgi?id=48483
|
||||
#
|
||||
# Workaround is to disable the cursor completely during gameplay
|
||||
# if command -v unclutter >/dev/null ; then
|
||||
# unclutter --timeout 0 --jitter 100000 --ignore-scrolling &
|
||||
# pid=$!
|
||||
# trap "kill $pid" EXIT
|
||||
# else
|
||||
# echo "WARNING: Unclutter not installed, cannot disable mouse cursor"
|
||||
# fi
|
||||
|
||||
wine ./Gothic2.exe
|
||||
}
|
||||
|
||||
ini() {
|
||||
cd "${GAMEDATA}"
|
||||
|
||||
set_ini() {
|
||||
local file="$1"
|
||||
local key="$2"
|
||||
local value="$3"
|
||||
if ! grep -q "^${key}=" "${file}" ; then
|
||||
echo "Key ${key} not fmund in ${file}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sed -i "s/^${key}=.*$/${key}=${value}\r/" "${file}"
|
||||
}
|
||||
|
||||
set_ini system/Gothic.ini sightValue 14
|
||||
set_ini system/Gothic.ini modelDetail 1
|
||||
set_ini system/Gothic.ini animatedWindows 0
|
||||
set_ini system/Gothic.ini playLogoVideos 0
|
||||
set_ini system/Gothic.ini useGothic1Controls 1
|
||||
set_ini system/Gothic.ini keyDelayRate 50
|
||||
set_ini system/Gothic.ini keyDelayFirst 150
|
||||
set_ini system/Gothic.ini subTitles 1
|
||||
set_ini system/Gothic.ini invMaxColumns 8
|
||||
set_ini system/Gothic.ini invMaxRows 0
|
||||
set_ini system/Gothic.ini useQuickSaveKeys 1
|
||||
set_ini system/Gothic.ini zVidResFullscreenX 2560
|
||||
set_ini system/Gothic.ini zVidResFullscreenY 1440
|
||||
set_ini system/Gothic.ini zVidResFullscreenBPP 32
|
||||
set_ini system/Gothic.ini zRainWindScale 0.1
|
||||
set_ini system/Gothic.ini zMouseRotationScale 15.0
|
||||
set_ini system/Gothic.ini zSmoothMouse 0
|
||||
|
||||
set_ini system/SystemPack.ini VerticalFOV 85.0
|
||||
set_ini system/SystemPack.ini DrawDistanceMultiplier 3
|
||||
set_ini system/SystemPack.ini OutDoorPortalDistanceMultiplier 3
|
||||
set_ini system/SystemPack.ini InDoorPortalDistanceMultiplier 3
|
||||
}
|
||||
|
||||
|
||||
case $1 in
|
||||
install)
|
||||
extract
|
||||
|
||||
mkdir -p "${DOWNLOADDIR}"
|
||||
cd "${DOWNLOADDIR}"
|
||||
|
||||
curl -C - -L -o g2addon-2_6.exe "https://www.worldofgothic.de/download.php?id=173"
|
||||
curl -C - -L -o gothic2_fix-2.6.0.0-rev2.exe "https://www.worldofgothic.de/download.php?id=833"
|
||||
curl -C - -L -o gothic2_playerkit-2.6f.exe "https://www.worldofgothic.de/download.php?id=518"
|
||||
curl -C - -L -o G2NoTR-SystemPack-1.8.exe "https://www.worldofgothic.de/download.php?id=1525"
|
||||
|
||||
curl -C - -L -o LHiver204_DE_22-06-20.exe "https://www.worldofgothic.de/download.php?id=1580"
|
||||
|
||||
curl -C - -L -o LaaHack.zip "https://www.worldofgothic.de/download.php?id=1457"
|
||||
|
||||
curl -C - -L -O "https://github.com/Kirides/GD3D11/releases/download/v17.7-dev20/Gothic2-GD3D11-v17.7-dev20.zip"
|
||||
|
||||
curl -C - -L -o Normalmaps_LHiver.zip "http://www.gothic-dx11.de/download/Normalmaps_LHiver.zip"
|
||||
|
||||
curl -C - -L -O https://github.com/Kirides/ninja-quickloot/releases/download/v1.9.5/Quickloot.vdf
|
||||
|
||||
curl -C - -L -O https://github.com/szapp/Ninja/releases/download/v2.7.12/Ninja-2.7.12.exe
|
||||
|
||||
laatmp=$(mktemp -d)
|
||||
|
||||
unzip -o LaaHack.zip -d "${laatmp}"
|
||||
|
||||
# winetricks -q dxvk
|
||||
winetricks -q directmusic
|
||||
if command -v setup_dxvk >/dev/null ; then
|
||||
setup_dxvk install
|
||||
else
|
||||
echo "WARNING: Using dxvk via winetricks, untested"
|
||||
winetricks dxvk
|
||||
fi
|
||||
|
||||
read -p 'During installation, use "Z:\var\games\gothic2\data" as the install directory! <Enter> to continue, <CTRL+C> to abort '
|
||||
|
||||
wine "${DOWNLOADDIR}"/g2addon-2_6.exe
|
||||
wine "${DOWNLOADDIR}"/gothic2_fix-2.6.0.0-rev2.exe
|
||||
wine "${DOWNLOADDIR}"/gothic2_playerkit-2.6f.exe
|
||||
wine "${DOWNLOADDIR}"/G2NoTR-SystemPack-1.8.exe
|
||||
wine "${DOWNLOADDIR}"/LHiver204_DE_22-06-20.exe
|
||||
wine "${DOWNLOADDIR}"/Ninja-2.7.12.exe
|
||||
|
||||
cd "${GAMEDATA}"
|
||||
|
||||
unzip -o "${DOWNLOADDIR}"/Gothic2-GD3D11-v17.7-dev20.zip -d ./system/
|
||||
|
||||
cp "${DOWNLOADDIR}"/Quickloot.vdf ./Data
|
||||
|
||||
t="./system/GD3D11/Textures/replacements/Normalmaps_xxx"
|
||||
mkdir -p "${t}"
|
||||
unzip -o "${DOWNLOADDIR}"/Normalmaps_LHiver.zip -d "${t}"
|
||||
unset t
|
||||
|
||||
read -p "For the LAA Hack, select only ${GAMEDATA}/system/Gothic2.exe [<Enter> to continue] "
|
||||
wine "${laatmp}"/LaaHack.exe
|
||||
rm -rf "${laatmp}"
|
||||
|
||||
# Required to create all ini files
|
||||
read -p "Now run the game once and exit! [<Enter> to continue] "
|
||||
|
||||
ini
|
||||
ln Data/ModVDF/LHE204_DE.mod Data/LHE204_DE.mod
|
||||
;;
|
||||
ini)
|
||||
ini
|
||||
;;
|
||||
start)
|
||||
export WINEDLLOVERRIDES="ddraw=n,b;dsound=b,n;d3dcompiler_47=n,b"
|
||||
start
|
||||
;;
|
||||
archive)
|
||||
archive "$2"
|
||||
;;
|
||||
exec)
|
||||
"${@}"
|
||||
;;
|
||||
esac
|
||||
@@ -4,7 +4,8 @@ set -o nounset
|
||||
set -o errexit
|
||||
|
||||
tmpdir="$(mktemp -d)"
|
||||
tmpdir=/tmp/dotfiles
|
||||
|
||||
trap "rm -rf ${tmpdir}" EXIT
|
||||
|
||||
git archive --format tar --output "${tmpdir}/dotfiles.tar" HEAD
|
||||
|
||||
@@ -17,24 +18,71 @@ git submodule foreach 'bash -x -c "
|
||||
|
||||
gzip -k -f -v "${tmpdir}/dotfiles.tar"
|
||||
|
||||
exit 1
|
||||
test_ares() {
|
||||
if [[ -d "/var/cache/pacman/pkg/" ]] ; then
|
||||
dockeropts=(-v "/var/cache/pacman/pkg/:/var/cache/pacman/pkg_host/")
|
||||
fi
|
||||
docker pull docker.io/library/archlinux:base
|
||||
docker run \
|
||||
-ti \
|
||||
--rm \
|
||||
-v ${tmpdir}/dotfiles.tar.gz:/tmp/dotfiles.tar.gz:ro \
|
||||
--mount type=tmpfs,destination=/var/cache/pacman/pkg/ \
|
||||
"${dockeropts[@]}" \
|
||||
--hostname ares \
|
||||
docker.io/library/archlinux:base \
|
||||
sh -c '
|
||||
set -o errexit
|
||||
|
||||
docker pull docker.io/library/archlinux:base
|
||||
docker run -ti --rm -v ${tmpdir}/dotfiles.tar.gz:/tmp/dotfiles.tar.gz:ro --hostname ares docker.io/library/archlinux:base sh -c '"
|
||||
set -o errexit
|
||||
# Uncomment CacheDir and append the host pacman cache as cachedir
|
||||
# At worst, the cache directory will be ignored if it does not exist
|
||||
# Pacman will always prefer the first cache directory, so newly downloaded
|
||||
# packages will stay in the container
|
||||
sed -i '"'"'s/^#\?\(CacheDir.*\)/\1\nCacheDir = \/var\/cache\/pacman\/pkg_host\//'"'"' /etc/pacman.conf
|
||||
|
||||
pacman -Syu --noconfirm python3
|
||||
cd $(mktemp -d)
|
||||
tar xf /tmp/dotfiles.tar.gz -C .
|
||||
ANSIBLE_EXTRA_ARGS="-e manage_services=false" ./install.sh
|
||||
read -p "Done, [return] to continue "
|
||||
'
|
||||
pacman -Syu --noconfirm linux python3
|
||||
mkdir /var/cache/pacman/pkg_host/
|
||||
cd $(mktemp -d)
|
||||
tar xf /tmp/dotfiles.tar.gz -C .
|
||||
ANSIBLE_EXTRA_ARGS="-e manage_services=false" ./install.sh
|
||||
'
|
||||
}
|
||||
|
||||
docker pull docker.io/library/ubuntu:18.04
|
||||
docker run -ti --rm -v ${tmpdir}/dotfiles.tar.gz:/tmp/dotfiles.tar.gz:ro --hostname tb-hak docker.io/library/ubuntu:18.04 sh -c '
|
||||
set -o errexit
|
||||
test_neptune() {
|
||||
docker pull docker.io/library/ubuntu:20.04
|
||||
docker run -ti --rm -v ${tmpdir}/dotfiles.tar.gz:/tmp/dotfiles.tar.gz:ro --hostname neptune docker.io/library/ubuntu:20.04 sh -c '
|
||||
set -o errexit
|
||||
|
||||
cd $(mktemp -d)
|
||||
tar xf /tmp/dotfiles.tar.gz -C .
|
||||
ANSIBLE_EXTRA_ARGS="-e manage_services=false" ./install.sh
|
||||
'
|
||||
cd $(mktemp -d)
|
||||
tar xf /tmp/dotfiles.tar.gz -C .
|
||||
ANSIBLE_EXTRA_ARGS="-e manage_services=false" ./install.sh
|
||||
'
|
||||
}
|
||||
|
||||
test_mars() {
|
||||
docker pull docker.io/library/ubuntu:20.04
|
||||
docker run -ti --rm -v ${tmpdir}/dotfiles.tar.gz:/tmp/dotfiles.tar.gz:ro --hostname mars docker.io/library/ubuntu:20.04 sh -c '
|
||||
set -o errexit
|
||||
|
||||
cd $(mktemp -d)
|
||||
tar xf /tmp/dotfiles.tar.gz -C .
|
||||
ANSIBLE_EXTRA_ARGS="-e manage_services=false" ./install.sh
|
||||
'
|
||||
}
|
||||
|
||||
case "${1:-all}" in
|
||||
ares)
|
||||
test_ares
|
||||
;;
|
||||
neptune)
|
||||
test_neptune
|
||||
;;
|
||||
mars)
|
||||
test_mars
|
||||
;;
|
||||
all)
|
||||
test_ares
|
||||
test_neptune
|
||||
test_mars
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
set -g default-command "${SHELL}"
|
||||
set -g default-terminal "${TERMBIN}"
|
||||
set -g default-terminal "xterm-256color"
|
||||
|
||||
set -g set-titles on
|
||||
set -g set-titles-string '#S'
|
||||
|
||||
378
user.yml
378
user.yml
@@ -20,23 +20,11 @@
|
||||
- sudo
|
||||
- dip
|
||||
- plugdev
|
||||
- lpadmin
|
||||
- sambashare
|
||||
- docker
|
||||
- libvirt
|
||||
when: distro == 'ubuntu'
|
||||
tags: [always]
|
||||
|
||||
- set_fact:
|
||||
user_groups:
|
||||
- libvirt
|
||||
- wheel
|
||||
- vboxusers
|
||||
- wireshark
|
||||
- docker
|
||||
when: distro == 'fedora'
|
||||
tags: [always]
|
||||
|
||||
- set_fact:
|
||||
user_groups:
|
||||
- libvirt
|
||||
@@ -46,6 +34,7 @@
|
||||
- docker
|
||||
- sudonopw
|
||||
- games
|
||||
- kvm
|
||||
when: distro == 'archlinux'
|
||||
tags: [always]
|
||||
|
||||
@@ -67,17 +56,29 @@
|
||||
become: true
|
||||
become_user: root
|
||||
|
||||
- name: create systemd directory
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ item }}"
|
||||
owner: "{{ user.name }}"
|
||||
group: "{{ user_group_name }}"
|
||||
loop:
|
||||
- "/home/{{ user.name }}/.config/"
|
||||
- "/home/{{ user.name }}/.config/systemd/"
|
||||
- "/home/{{ user.name }}/.config/systemd/user/"
|
||||
|
||||
# No way to use the `systemd` module here, as it needs a logind
|
||||
# session. So we have to handle the symlinks for masking ourselves.
|
||||
- name: disable and mask systemd user units
|
||||
systemd:
|
||||
name: "{{ item }}"
|
||||
enabled: false
|
||||
masked: true
|
||||
scope: user
|
||||
file:
|
||||
state: link
|
||||
dest: "/home/{{ user.name }}/.config/systemd/user/{{ item }}"
|
||||
src: "/dev/null"
|
||||
with_items:
|
||||
- gpg-agent.service
|
||||
- gpg-agent.socket
|
||||
- gpg-agent-browser.socket
|
||||
- gpg-agent-ssh.socket
|
||||
- gpg-agent-extra.socket
|
||||
|
||||
- name: create directory for getty autologin
|
||||
file:
|
||||
@@ -217,6 +218,7 @@
|
||||
state: directory
|
||||
path: "{{ item }}"
|
||||
with_items:
|
||||
- ~/tmp
|
||||
- ~/.var/lib
|
||||
- ~/.var/log
|
||||
- ~/.var/run
|
||||
@@ -254,8 +256,6 @@
|
||||
owner: "{{ user.name }}"
|
||||
group: "{{ user_group_name }}"
|
||||
with_items:
|
||||
- name: terraform
|
||||
optpath: terraform
|
||||
- name: hugo
|
||||
optpath: hugo
|
||||
- name: drone
|
||||
@@ -273,20 +273,20 @@
|
||||
tags:
|
||||
- dotfiles
|
||||
|
||||
- name: create intermediate directories for vim-plug
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- ~/.local/
|
||||
- ~/.local/share/
|
||||
- ~/.local/share/nvim/
|
||||
- ~/.local/share/nvim/site/
|
||||
- ~/.local/share/nvim/site/autoload/
|
||||
- ~/.vim/
|
||||
- ~/.vim/autoload
|
||||
|
||||
- block:
|
||||
- name: create intermediate directories for vim-plug
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- ~/.local/
|
||||
- ~/.local/share/
|
||||
- ~/.local/share/nvim/
|
||||
- ~/.local/share/nvim/site/
|
||||
- ~/.local/share/nvim/site/autoload/
|
||||
- ~/.vim/
|
||||
- ~/.vim/autoload
|
||||
|
||||
- name: install vim-plug
|
||||
copy:
|
||||
src: contrib/vim-plug/plug.vim
|
||||
@@ -302,34 +302,161 @@
|
||||
src: ~/.vim/autoload/plug.vim
|
||||
force: true
|
||||
|
||||
- name: get ycm version before update
|
||||
shell: |
|
||||
if ! [[ -d ~/.local/share/nvim/plugged/YouCompleteMe ]] ; then
|
||||
exit 200
|
||||
fi
|
||||
cd ~/.local/share/nvim/plugged/YouCompleteMe
|
||||
git rev-parse HEAD
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: ycm_before_update
|
||||
changed_when: false
|
||||
failed_when: ycm_before_update.rc not in (0, 200)
|
||||
tags: [update]
|
||||
|
||||
- name: install vim plugins
|
||||
command: /usr/bin/nvim -f -E -s -c "source ~/.vimrc" +PlugInstall +qall
|
||||
register: vim_plugins_stdout
|
||||
check_mode: false
|
||||
changed_when: vim_plugins_stdout.stdout_lines|length != 0
|
||||
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugInstall +qall'
|
||||
register: vim_plugin_install
|
||||
changed_when: vim_plugin_install.stderr != ""
|
||||
|
||||
- name: install go binaries for vim
|
||||
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoInstallBinaries +qall'
|
||||
changed_when: false
|
||||
|
||||
- name: update vim plugins
|
||||
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugUpdate +qall'
|
||||
register: vim_plugin_update
|
||||
changed_when: vim_plugin_update.stderr != ""
|
||||
tags: [update]
|
||||
|
||||
- name: update go binaries for vim
|
||||
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall'
|
||||
changed_when: false
|
||||
tags: [update]
|
||||
|
||||
- name: get ycm version after update
|
||||
shell: |
|
||||
cd ~/.local/share/nvim/plugged/YouCompleteMe
|
||||
git rev-parse HEAD
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: ycm_after_update
|
||||
changed_when: false
|
||||
tags: [update]
|
||||
|
||||
- name: compile youcompleteme
|
||||
# --force-sudo is required, as the script refuses to run in a sudo
|
||||
# environment (i.e. if the SUDO_USER env variable is set). But of course,
|
||||
# ansible uses that to assume the other user. It's fine.
|
||||
shell: |
|
||||
cd ~/.local/share/nvim/plugged/YouCompleteMe/
|
||||
python3 ./install.py # --go-completer
|
||||
cd ~/.local/share/nvim/plugged/YouCompleteMe
|
||||
python3 ./install.py --force-sudo
|
||||
args:
|
||||
creates: ~/.local/share/nvim/plugged/YouCompleteMe/third_party/ycmd/ycm_core.so
|
||||
when: vim_plugins_stdout.stdout_lines|length != 0 or true
|
||||
executable: /bin/bash
|
||||
register: ycm_compile_output
|
||||
failed_when: ycm_compile_output.rc not in (0, 200)
|
||||
when: >
|
||||
(ycm_before_update.rc == 200)
|
||||
or
|
||||
(ycm_before_update.stdout != ycm_after_update.stdout)
|
||||
tags: [update]
|
||||
tags: [vim-plugins]
|
||||
|
||||
- block:
|
||||
- name: firefox - create chrome directory
|
||||
- name: install rustup on ubuntu
|
||||
shell: curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path
|
||||
args:
|
||||
creates: ~/.cargo/bin/rustup
|
||||
when: distro == 'ubuntu'
|
||||
tags: [rust]
|
||||
|
||||
- block:
|
||||
- name: create firefox directories
|
||||
firefox_profile:
|
||||
name: "{{ item.key }}"
|
||||
loop: "{{ user.firefox_profiles | dict2items }}"
|
||||
register: firefox_profile_names
|
||||
|
||||
- set_fact:
|
||||
firefox_preferences:
|
||||
browser.aboutConfig.showWarning: false
|
||||
browser.download.useDownloadDir: false
|
||||
extensions.pocket.enabled: false
|
||||
toolkit.legacyUserProfileCustomizations.stylesheets: true
|
||||
browser.contentblocking.category: "strict"
|
||||
browser.newtabpage.enabled: false
|
||||
browser.shell.checkDefaultBrowser: false
|
||||
browser.startup.homepage: "about:blank"
|
||||
privacy.trackingprotection.enabled: true
|
||||
privacy.trackingprotection.socialtracking.enabled: true
|
||||
general.smoothScroll: false
|
||||
|
||||
# Restore last session on startup
|
||||
# https://support.mozilla.org/de/questions/1235263
|
||||
browser.startup.page: 3
|
||||
browser.sessionstore.resume_from_crash: true
|
||||
|
||||
# "Play DRM-controlled content"
|
||||
media.eme.enabled: true
|
||||
|
||||
# "Recommend (extensions|features) as you browse"
|
||||
browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons: false
|
||||
browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features: false
|
||||
|
||||
# "Ask to save logins and passwords for websites"
|
||||
signon.rememberSignons: false
|
||||
|
||||
# "Allow Firefox to make personalized extension recommendations"
|
||||
browser.discovery.enabled: false
|
||||
|
||||
# "Allow Firefox to install and run studies"
|
||||
app.shield.optoutstudies.enabled: false
|
||||
|
||||
- include_role:
|
||||
name: firefox
|
||||
vars:
|
||||
firefox_profiles: "{{ {item.key: item.value} | combine({item.key: {'preferences': firefox_preferences}}, recursive=True) }}"
|
||||
loop: "{{ user.firefox_profiles | dict2items }}"
|
||||
|
||||
- name: firefox - create target directory for passff
|
||||
file:
|
||||
path: ~/.mozilla/firefox/{{ item.name }}/chrome/
|
||||
path: ~/.mozilla/native-messaging-hosts
|
||||
owner: "{{ user.name }}"
|
||||
group: "{{ user_group_name }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
with_items: "{{ user.firefox_profiles }}"
|
||||
when: user.firefox_profiles is defined
|
||||
tags:
|
||||
- firefox
|
||||
|
||||
- name: firefox - get passff host application
|
||||
get_url:
|
||||
url: https://github.com/passff/passff-host/releases/download/1.2.2/{{ item.name }}
|
||||
dest: ~/.mozilla/native-messaging-hosts/{{ item.name }}
|
||||
owner: "{{ user.name }}"
|
||||
group: "{{ user_group_name }}"
|
||||
mode: "{{ item.mode }}"
|
||||
loop:
|
||||
- name: passff.json
|
||||
mode: '0644'
|
||||
- name: passff.py
|
||||
mode: '0755'
|
||||
|
||||
- name: firefox - configure path to passff
|
||||
lineinfile:
|
||||
path: ~/.mozilla/native-messaging-hosts/passff.json
|
||||
search_string: '"path": "PLACEHOLDER"'
|
||||
line: " \"path\": \"/home/{{ user.name }}/.mozilla/native-messaging-hosts/passff.py\","
|
||||
|
||||
- name: firefox - create chrome directory
|
||||
file:
|
||||
path: "{{ item.profile_path }}/chrome/"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
with_items: "{{ firefox_profile_names.results }}"
|
||||
|
||||
- name: firefox - configure firefox custom css
|
||||
copy:
|
||||
dest: ~/.mozilla/firefox/{{ item.name }}/chrome/userChrome.css
|
||||
dest: "{{ item.profile_path }}/chrome/userChrome.css"
|
||||
content: |
|
||||
#TabsToolbar {
|
||||
visibility: collapse !important;
|
||||
@@ -343,16 +470,12 @@
|
||||
#sidebar {
|
||||
width: 400px !important;
|
||||
}
|
||||
when: item.manage_css
|
||||
with_items: "{{ user.firefox_profiles | default([]) }}"
|
||||
tags:
|
||||
- firefox
|
||||
when: user.firefox_profiles[item.profile_name].manage_css is sameas True
|
||||
with_items: "{{ firefox_profile_names.results }}"
|
||||
tags:
|
||||
- firefox
|
||||
|
||||
- block:
|
||||
- name: set portfolio performance version
|
||||
set_fact:
|
||||
portfolio_performace_version: "0.50.0"
|
||||
|
||||
- name: look of current installation
|
||||
stat:
|
||||
path: /home/{{ user.name }}/.opt/portfolio-performance-{{ portfolio_performace_version }}
|
||||
@@ -392,7 +515,14 @@
|
||||
checksum: true
|
||||
delete: true
|
||||
|
||||
when: not stat_portfolio_performance_installation.stat.exists
|
||||
- name: clean up temp directory
|
||||
file:
|
||||
path: "{{ tempdir.path }}"
|
||||
state: absent
|
||||
|
||||
when:
|
||||
- not stat_portfolio_performance_installation.stat.exists
|
||||
- not ansible_check_mode
|
||||
|
||||
- name: link portfolio performance
|
||||
file:
|
||||
@@ -407,10 +537,6 @@
|
||||
- portfolio-performance
|
||||
|
||||
- block:
|
||||
- name: set kubectl version
|
||||
set_fact:
|
||||
kubectl_version: v1.20.1
|
||||
|
||||
- name: get current stable version
|
||||
uri:
|
||||
url: https://storage.googleapis.com/kubernetes-release/release/stable.txt
|
||||
@@ -425,10 +551,10 @@
|
||||
kubectl_outdated: "{{ kubectl_version != kubectl_stable_version }}"
|
||||
|
||||
- name: warn if not on stable version
|
||||
debug:
|
||||
fail:
|
||||
msg: "installing kubectl {{ kubectl_version }}, stable version would be {{ kubectl_stable_version }}"
|
||||
changed_when: kubectl_outdated is sameas true
|
||||
when: kubectl_outdated is sameas true
|
||||
ignore_errors: True
|
||||
|
||||
- name: get kubectl
|
||||
get_url:
|
||||
@@ -438,6 +564,11 @@
|
||||
group: "{{ user_group_name }}"
|
||||
mode: '0755'
|
||||
|
||||
- name: make kubectl executable
|
||||
file:
|
||||
path: /home/{{ user.name }}/.opt/kubectl-{{ kubectl_version }}
|
||||
mode: '0755'
|
||||
|
||||
- name: link kubectl
|
||||
file:
|
||||
src: /home/{{ user.name }}/.opt/kubectl-{{ kubectl_version }}
|
||||
@@ -447,6 +578,67 @@
|
||||
tags:
|
||||
- kubectl
|
||||
|
||||
- block:
|
||||
- name: stat current terraform binary
|
||||
stat:
|
||||
path: "/home/{{ user.name }}/.opt/terraform-v{{ terraform_version }}"
|
||||
register: terraform_binary
|
||||
|
||||
- name: create temporary download directory for terraform
|
||||
tempfile:
|
||||
state: directory
|
||||
register: terraform_download_dir
|
||||
when: not terraform_binary.stat.exists
|
||||
|
||||
- name: get terraform
|
||||
get_url:
|
||||
url: "https://releases.hashicorp.com/terraform/{{ terraform_version }}/terraform_{{ terraform_version }}_linux_amd64.zip"
|
||||
dest: "{{ terraform_download_dir.path }}/terraform.zip"
|
||||
when: not terraform_binary.stat.exists
|
||||
|
||||
- name: unpack terraform zip
|
||||
unarchive:
|
||||
src: "{{ terraform_download_dir.path }}/terraform.zip"
|
||||
dest: "{{ terraform_download_dir.path }}/"
|
||||
remote_src: true
|
||||
when: not terraform_binary.stat.exists
|
||||
|
||||
- name: install terraform
|
||||
command: mv "{{ terraform_download_dir.path }}/terraform" /home/{{ user.name }}/.opt/terraform-v{{ terraform_version }}
|
||||
when: not terraform_binary.stat.exists
|
||||
|
||||
- name: clean up download directory
|
||||
file:
|
||||
path: "{{ terraform_download_dir.path }}"
|
||||
state: absent
|
||||
when: not terraform_binary.stat.exists
|
||||
|
||||
- name: link terraform
|
||||
file:
|
||||
src: /home/{{ user.name }}/.opt/terraform-v{{ terraform_version }}
|
||||
dest: /home/{{ user.name }}/.optbin/terraform
|
||||
state: link
|
||||
|
||||
- name: get terraform version info
|
||||
command: /home/{{ user.name }}/.optbin/terraform version -json
|
||||
register: terraform_version_output
|
||||
check_mode: false
|
||||
changed_when: false
|
||||
|
||||
- name: parse terraform version output
|
||||
set_fact:
|
||||
terraform_outdated: "{{ (terraform_version_output.stdout | from_json()).terraform_outdated }}"
|
||||
changed_when: false
|
||||
|
||||
- name: warn if terraform is outdated
|
||||
fail:
|
||||
msg: "current terraform v{{ terraform_version }} is out of date"
|
||||
when: terraform_outdated is sameas true
|
||||
ignore_errors: True
|
||||
|
||||
tags:
|
||||
- terraform
|
||||
|
||||
- name: handle autostart units
|
||||
block:
|
||||
- name: create systemd user directory
|
||||
@@ -469,5 +661,65 @@
|
||||
group: "{{ user_group_name }}"
|
||||
with_fileglob: /var/lib/dotfiles/autostart/services/*
|
||||
|
||||
- name: get state of autostart.target
|
||||
stat:
|
||||
path: "/home/{{ user.name }}/.config/systemd/user/autostart.target"
|
||||
register: autostart_target_stat
|
||||
|
||||
- name: remove invalid autostart.target
|
||||
file:
|
||||
path: "/home/{{ user.name }}/.config/systemd/user/autostart.target"
|
||||
state: absent
|
||||
when:
|
||||
- autostart_target_stat.stat.exists
|
||||
- not autostart_target_stat.stat.isreg
|
||||
|
||||
- name: deploy autostart.target
|
||||
template:
|
||||
src: ./autostart/autostart.target.j2
|
||||
dest: "/home/{{ user.name }}/.config/systemd/user/autostart.target"
|
||||
owner: "{{ user.name }}"
|
||||
group: "{{ user_group_name }}"
|
||||
force: true
|
||||
follow: false
|
||||
|
||||
tags:
|
||||
- autostart
|
||||
|
||||
- block:
|
||||
- name: import gpg key
|
||||
command: gpg --import ./gpgkeys/{{ user.gpg_key.email }}.gpg.asc
|
||||
register: gpg_import_output
|
||||
changed_when: not ("unchanged" in gpg_import_output.stderr)
|
||||
|
||||
- name: trust gpg key
|
||||
shell: "gpg --import-ownertrust <<< {{ user.gpg_key.fingerprint }}:6"
|
||||
args:
|
||||
executable: /bin/bash # required for <<<
|
||||
register: gpg_trust_output
|
||||
changed_when: gpg_trust_output.stderr_lines|length > 0
|
||||
|
||||
when: user.gpg_key is defined
|
||||
tags: [gpg]
|
||||
|
||||
- block:
|
||||
- name: add passwordstore init script
|
||||
copy:
|
||||
dest: /home/{{ user.name }}/.optbin/pass
|
||||
owner: "{{ user.name }}"
|
||||
group: "{{ user_group_name }}"
|
||||
mode: '0755'
|
||||
content: |
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ ! -e ~/.password-store ]] ; then
|
||||
printf '%s\n' 'This is the first time running pass, initializting repository ...'
|
||||
|
||||
git clone ssh://git@code.hkoerber.de:2222/hannes/passwordstore.git ~/.password-store
|
||||
|
||||
printf '%s\n' 'Done'
|
||||
fi
|
||||
|
||||
exec mypass "${@}"
|
||||
when: user.enable_passwordstore|default(false) is sameas true
|
||||
tags: [passwordstore]
|
||||
|
||||
28
variables.yml
Normal file
28
variables.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
terraform_version: 1.0.2
|
||||
kubectl_version: v1.22.3
|
||||
go_version: "1.17.1"
|
||||
portfolio_performace_version: "0.55.0"
|
||||
cargo_crate_list:
|
||||
- crate: just
|
||||
binary: just
|
||||
version: 0.10.2
|
||||
- crate: ripgrep
|
||||
binary: rg
|
||||
version: 13.0.0
|
||||
- crate: fd-find
|
||||
binary: fd
|
||||
version: 8.2.1
|
||||
- crate: bat
|
||||
binary: bat
|
||||
version: 0.18.3
|
||||
- crate: exa
|
||||
binary: exa
|
||||
version: 0.10.1
|
||||
- crate: watchexec-cli
|
||||
binary: watchexec
|
||||
version: 1.17.1
|
||||
- url: https://github.com/hakoerber/git-repo-manager
|
||||
binary: grm
|
||||
branch: master
|
||||
source: git
|
||||
toolchain: nightly
|
||||
53
vim/vimrc
53
vim/vimrc
@@ -13,7 +13,8 @@ Plug 'majutsushi/tagbar'
|
||||
" Plug 'nblock/vim-dokuwiki'
|
||||
Plug 'reedes/vim-pencil'
|
||||
Plug 'saltstack/salt-vim'
|
||||
Plug 'sickill/vim-monokai'
|
||||
"Plug 'sickill/vim-monokai'
|
||||
Plug 'patstockwell/vim-monokai-tasty'
|
||||
" Plug 'sjl/gundo.vim'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'tpope/vim-fugitive'
|
||||
@@ -47,17 +48,30 @@ Plug 'rodjek/vim-puppet'
|
||||
Plug 'suan/vim-instant-markdown'
|
||||
"Plug 'marshallward/vim-restructuredtext'
|
||||
"Plug 'vim-syntastic/syntastic'
|
||||
Plug 'ElmCast/elm-vim'
|
||||
Plug 'avh4/elm-format'
|
||||
"Plug 'ElmCast/elm-vim'
|
||||
"Plug 'avh4/elm-format'
|
||||
|
||||
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||
Plug 'fatih/vim-go'
|
||||
Plug 'hashivim/vim-terraform'
|
||||
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
|
||||
Plug 'leafgarland/typescript-vim'
|
||||
|
||||
Plug 'prettier/vim-prettier', {
|
||||
\ 'do': 'yarn install',
|
||||
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] }
|
||||
Plug 'prettier/vim-prettier', { 'do': 'npm install' }
|
||||
|
||||
Plug 'yuezk/vim-js'
|
||||
Plug 'maxmellon/vim-jsx-pretty'
|
||||
|
||||
Plug 'evanleck/vim-svelte', {'branch': 'main'}
|
||||
|
||||
"Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
|
||||
" Plug 'Chiel92/vim-autoformat'
|
||||
|
||||
Plug 'evanleck/vim-svelte', {'branch': 'main'}
|
||||
|
||||
Plug 'cespare/vim-toml', { 'branch': 'main' }
|
||||
|
||||
call plug#end()
|
||||
filetype plugin indent on
|
||||
@@ -207,6 +221,11 @@ nnoremap <leader>d :diffupdate<CR>
|
||||
nmap <F9> :Goyo<CR>:TogglePencil<CR>:Limelight!!<CR>
|
||||
nmap <leader>w :Goyo<CR>:TogglePencil<CR>:Limelight!!<CR>
|
||||
|
||||
nmap <leader>c :%w !xclip -selection clipboard<CR>
|
||||
nmap <leader>x :r !xclip -out -selection -clipboard<CR><CR>
|
||||
|
||||
nmap <leader>f :Autoformat<CR>
|
||||
|
||||
" no more ex mode
|
||||
nnoremap Q <nop>
|
||||
|
||||
@@ -219,13 +238,13 @@ nnoremap Q <nop>
|
||||
" === plugin setup ===
|
||||
|
||||
" == colorscheme ==
|
||||
set background=light
|
||||
let g:solarized_termcolors=16
|
||||
let g:solarized_termtrans=1
|
||||
let g:solarized_contrast="normal"
|
||||
let g:solarized_visibility="normal"
|
||||
" set background=light
|
||||
" let g:solarized_termcolors=16
|
||||
" let g:solarized_termtrans=1
|
||||
" let g:solarized_contrast="normal"
|
||||
" let g:solarized_visibility="normal"
|
||||
syntax enable
|
||||
silent! colorscheme monokai
|
||||
silent! colorscheme vim-monokai-tasty
|
||||
|
||||
" == tagbar ==
|
||||
nnoremap <F10> :TagbarToggle<CR>
|
||||
@@ -301,6 +320,7 @@ endfunction
|
||||
autocmd BufWritePre * :call DeleteTrailingWS()
|
||||
|
||||
autocmd FileType yaml set shiftwidth=2
|
||||
autocmd FileType toml set shiftwidth=2
|
||||
set completeopt-=preview
|
||||
let g:ycm_add_preview_to_completeopt = 0
|
||||
|
||||
@@ -328,3 +348,10 @@ if v:version >= 700
|
||||
au BufLeave * let b:winview = winsaveview()
|
||||
au BufEnter * if(exists('b:winview')) | call winrestview(b:winview) | endif
|
||||
endif
|
||||
|
||||
" https://github.com/golang/tools/blob/master/gopls/doc/vim.md
|
||||
let g:go_def_mode='gopls'
|
||||
let g:go_info_mode='gopls'
|
||||
|
||||
" https://stackoverflow.com/a/8585343
|
||||
map <leader>q :bp<bar>sp<bar>bn<bar>bd<CR>
|
||||
|
||||
@@ -1,74 +1 @@
|
||||
Xcursor.theme: Vanilla-DMZ
|
||||
|
||||
URxvt.scrollBar: false
|
||||
|
||||
URxvt.font: xft:Inconsolata:size={{ machine.font_size }}
|
||||
URxvt.letterSpace: {{ machine.letter_space }}
|
||||
|
||||
URxvt.perl-ext-common: default,matcher,selection-to-clipboard,resize-font,selection-to-clipboard
|
||||
URxvt.url-launcher: /usr/bin/xdg-open
|
||||
URxvt.matcher.button: 1
|
||||
URxvt.saveLines: 10000
|
||||
|
||||
URxvt.keysym.C-udiaeresis: perl:matcher:last
|
||||
URxvt.keysym.C-adiaeresis: perl:matcher:list
|
||||
|
||||
URxvt.matcher.rend.0: Uline Bold fg5
|
||||
|
||||
URxvt.internalBorder: 3
|
||||
URxvt.externalBorder: 0
|
||||
|
||||
URxvt.cursorBlink: true
|
||||
URxvt.title: term
|
||||
URxvt.jumpScroll: true
|
||||
URxvt.skipScroll: true
|
||||
URxvt.secondaryScreen: 1
|
||||
URxvt.secondaryScroll: 0
|
||||
URxvt.secondaryWheel: 1
|
||||
|
||||
URxvt.keysym.C-Up: font-size:increase
|
||||
URxvt.keysym.C-Down: font-size:decrease
|
||||
URxvt.keysym.C-S-Up: font-size:incglobal
|
||||
URxvt.keysym.C-S-Down: font-size:decglobal
|
||||
URxvt.keysym.C-equal: font-size:reset
|
||||
URxvt.keysym.C-slash: font-size:show
|
||||
|
||||
|
||||
URxvt.fading: 15
|
||||
|
||||
! special
|
||||
*.foreground: #f8f8f2
|
||||
*.background: #272822
|
||||
*.cursorColor: #f8f8f2
|
||||
|
||||
! black
|
||||
*.color0: #272822
|
||||
*.color8: #75715e
|
||||
|
||||
! red
|
||||
*.color1: #f92672
|
||||
*.color9: #f92672
|
||||
|
||||
! green
|
||||
*.color2: #a6e22e
|
||||
*.color10: #a6e22e
|
||||
|
||||
! yellow
|
||||
*.color3: #f4bf75
|
||||
*.color11: #f4bf75
|
||||
|
||||
! blue
|
||||
*.color4: #66d9ef
|
||||
*.color12: #66d9ef
|
||||
|
||||
! magenta
|
||||
*.color5: #ae81ff
|
||||
*.color13: #ae81ff
|
||||
|
||||
! cyan
|
||||
*.color6: #a1efe4
|
||||
*.color14: #a1efe4
|
||||
|
||||
! white
|
||||
*.color7: #f8f8f2
|
||||
*.color15: #f9f8f5
|
||||
|
||||
@@ -20,6 +20,7 @@ fi
|
||||
|
||||
start_wm() {
|
||||
log "starting i3"
|
||||
systemctl --user import-environment
|
||||
systemctl --user start windowmanager.target
|
||||
sleep 1
|
||||
systemctl --user start autostart.target
|
||||
|
||||
@@ -1,25 +1,19 @@
|
||||
_path=("$HOME/bin"
|
||||
"$HOME/.optbin"
|
||||
"/usr/local/sbin"
|
||||
"/usr/local/bin"
|
||||
"/usr/sbin"
|
||||
"/usr/bin"
|
||||
"/sbin"
|
||||
"/bin"
|
||||
"/usr/bin/core_perl"
|
||||
"/usr/games")
|
||||
source /etc/profile
|
||||
|
||||
_path=(
|
||||
"$HOME/bin"
|
||||
"$HOME/.optbin"
|
||||
"$HOME/.cargo/bin"
|
||||
)
|
||||
|
||||
PATH=""
|
||||
for part in ${_path[@]} ; do
|
||||
PATH="$PATH:${part}"
|
||||
done
|
||||
PATH="${PATH#:}"
|
||||
export PATH
|
||||
|
||||
export EDITOR="nvim"
|
||||
export VISUAL="nvim"
|
||||
export BROWSER="firefox"
|
||||
export TERMBIN="{{ machine.terminal_binary }}"
|
||||
|
||||
export PAGER="less"
|
||||
export LESS="FRX"
|
||||
@@ -39,9 +33,7 @@ export LC_COLLATE=C
|
||||
|
||||
export DOTFILES=~/dotfiles
|
||||
|
||||
export GOPATH=~/dev/go
|
||||
export GOROOT=/usr/lib/go
|
||||
|
||||
export GOPATH=~/.go
|
||||
export PATH=$PATH:$(go env GOPATH)/bin
|
||||
|
||||
export ACPI_LID_NAME=LID
|
||||
@@ -55,6 +47,22 @@ umask 0022
|
||||
export {{ k }}="{{ v }}"
|
||||
{% endfor %}
|
||||
|
||||
export FEATURE_DIR="${RUNDIR}/features/"
|
||||
rm -rf "${FEATURE_DIR}"/
|
||||
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_RESTIC_BACKUP == "true" ]] && touch "${FEATURE_DIR}"/restic_backup
|
||||
[[ $MACHINE_HAS_ELEMENT == "true" ]] && touch "${FEATURE_DIR}"/element
|
||||
|
||||
[[ $MACHINE_TYPE == "laptop" ]] && touch "${FEATURE_DIR}"/machine_is_laptop
|
||||
|
||||
{% if user.gpg_agent %}
|
||||
touch "${FEATURE_DIR}"/gpg_agent
|
||||
{% endif %}
|
||||
|
||||
# Make all environment variables also usable in the systemd user instancee
|
||||
systemctl --user import-environment
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
alias vim="nvim"
|
||||
|
||||
### COMMON OPERATIONS
|
||||
alias ll='ls -AlFh'
|
||||
alias la='ls -A'
|
||||
### BETTER COMMANDS
|
||||
alias ls="exa --oneline --icons --group-directories-first"
|
||||
alias ll='ls --all --long --classify --group --modified --time-style=long-iso --git'
|
||||
alias la='ls --all'
|
||||
|
||||
alias spm="sudo pacman"
|
||||
|
||||
@@ -31,8 +32,6 @@ alias tmux="tmux -2"
|
||||
alias chmod="chmod -c"
|
||||
alias chown="chown -c"
|
||||
|
||||
alias ls="ls --group-directories-first --classify --color=auto"
|
||||
|
||||
alias diff="diff --color=auto"
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
@@ -68,13 +67,11 @@ alias twa="task add"
|
||||
alias twd="task done"
|
||||
alias inbox="task add +inbox"
|
||||
|
||||
alias yaml2json="python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)'"
|
||||
alias json2yaml="python -c 'import sys, yaml, json; yaml.safe_dump(json.loads(sys.stdin.read()), stream=sys.stdout)'"
|
||||
alias yaml2json="python3 -c 'import sys, yaml, json; json.dump(yaml.safe_load(sys.stdin), sys.stdout, indent=4)'"
|
||||
alias json2yaml="python3 -c 'import sys, yaml, json; yaml.safe_dump(json.loads(sys.stdin.read()), stream=sys.stdout)'"
|
||||
|
||||
alias currentbranch='git rev-parse --abbrev-ref HEAD'
|
||||
|
||||
alias pass=mypass
|
||||
|
||||
alias issh="ssh -o StrictHostKeyChecking=false -o UserKnownHostsFile=/dev/null"
|
||||
alias gfix='git commit --amend --no-edit'
|
||||
alias gfixa='git commit --amend --no-edit --all '
|
||||
@@ -89,6 +86,11 @@ alias sysu="systemctl --user"
|
||||
|
||||
alias gpg=gpg2
|
||||
|
||||
alias alacritty="alacritty --config-file $HOME/.config/alacritty.yml"
|
||||
|
||||
alias d=docker
|
||||
alias dc=docker-compose
|
||||
|
||||
gitmaster() {
|
||||
git stash push -m gitmaster-$(date -uIseconds) -u || return 1
|
||||
_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||
@@ -241,10 +243,6 @@ man() {
|
||||
man "$@"
|
||||
}
|
||||
|
||||
embiggen() {
|
||||
enscript --no-header --media=A4 --landscape --font="DejaVuSansMono30" -o - | ps2pdf - | zathura -
|
||||
}
|
||||
|
||||
resolvecd() {
|
||||
cd "$(readlink -f $(pwd))"
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ man() {
|
||||
}
|
||||
|
||||
embiggen() {
|
||||
enscript --no-header --media=A4 --landscape --font="DejaVuSansMono30" -o - | ps2pdf - | zathura -
|
||||
enscript --no-header --media=A4 --landscape --font="DejaVuSansMono30" -o - 2>/dev/null | ps2pdf - | zathura -
|
||||
}
|
||||
|
||||
resolvecd() {
|
||||
|
||||
@@ -18,3 +18,7 @@ if [[ -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]] ; the
|
||||
elif [[ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]] ; then
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
fi
|
||||
|
||||
{% if distro == 'ubuntu' %}
|
||||
alias imv=imv-x11
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user