Compare commits
308 Commits
test2
...
a6efc6c43d
| Author | SHA1 | Date | |
|---|---|---|---|
| a6efc6c43d | |||
| 4f1ef573e8 | |||
| 49c95f5be1 | |||
| 5ffc046537 | |||
| 8b4e01b538 | |||
| d6c0df83f1 | |||
| aed9e65c44 | |||
| a71942a69e | |||
| 891c761e66 | |||
| 72386b0005 | |||
| 6763f4105f | |||
| e88b1dd5fa | |||
| 7b892b7d56 | |||
| 67dc8a99f2 | |||
| 4b09d22cfc | |||
| 40f4f73efb | |||
| 504e6784da | |||
| 79a9c7eebd | |||
| 4403719e13 | |||
| 24616ec1db | |||
| 15d2b54eb7 | |||
| 3e4d59348b | |||
| 374c939fdb | |||
| 4dfe80d56b | |||
| 45c48b39bc | |||
| 0d9076d5ed | |||
| 6e4c633b42 | |||
| 316502744b | |||
| c3c22c5944 | |||
| a5c83fb4ac | |||
| 6116088396 | |||
| fe49d682a9 | |||
| 26d5535f0d | |||
| f5456a82fa | |||
| 4060b2f840 | |||
| 032b601561 | |||
| b3d18f3dd9 | |||
| 2c2aaf5de8 | |||
| 3703fd3d3b | |||
| 4c34680a10 | |||
| 478bb17fd1 | |||
| f9c640eecb | |||
| 8a09cb050c | |||
| 84105ba6f6 | |||
| 3970d71363 | |||
| 06674d7b99 | |||
| d62b8ca11d | |||
| 5db5a4fe2a | |||
| c9ee90f889 | |||
| f2aafc1ba7 | |||
| add0adb9a0 | |||
| 7661621c00 | |||
| 0228edc5c7 | |||
| edf62e7622 | |||
| 7fd54e39ca | |||
| a49ea2ee2b | |||
| f0b732ce79 | |||
| 1c06d9ca2e | |||
| 3e336eac2c | |||
| 8ef941ccd3 | |||
| 1532f95ea4 | |||
| e29138ba9b | |||
| 374fd85af6 | |||
| fa05b32485 | |||
| 489b80d136 | |||
| fafca0e743 | |||
| 290bcbe172 | |||
| 6b0db2f804 | |||
| 1a31586fbe | |||
| d00cf5b11c | |||
| 7671b3e48e | |||
| 5462ab0790 | |||
| f6715dedc6 | |||
| 0030cc2ca9 | |||
| 5d116becfb | |||
| 01ebaea6c2 | |||
| 916d67d22f | |||
| 329f2a6e2c | |||
| 8307a4d4ca | |||
| 040e5d09e5 | |||
| 1bc03cffcc | |||
| 465a413ae9 | |||
| 83d7386b25 | |||
| eb07b67107 | |||
| 1c6fe13112 | |||
| 1ae605a52a | |||
| 05618cf533 | |||
| c1c9d7bbad | |||
| 08efa386fc | |||
| 7016c97f9d | |||
| ecde49ce4a | |||
| 3bc6db63cb | |||
| 20eee74860 | |||
| 42c55c6f53 | |||
| 583a2c856b | |||
| 00536c6260 | |||
| ff9d2b547f | |||
| b4fdaae8c5 | |||
| 92a78cf2f4 | |||
| 355443acc6 | |||
| 3b24d2bac4 | |||
| 8d6dc18bb0 | |||
| cef0463e89 | |||
| d9b1a4ca5d | |||
| 4039174e45 | |||
| 0759483348 | |||
| a6dd7e0c21 | |||
| 98bdcb1b2c | |||
| 351fe1bb9a | |||
| 3cf20a7306 | |||
| 06c5871ed4 | |||
| c781636516 | |||
| 22f0586995 | |||
| f4f2f47ee2 | |||
| 86d417264a | |||
| e9647aca00 | |||
| 8067e31901 | |||
| 77c637524f | |||
| d1fe361df6 | |||
| 09d06ac7e7 | |||
| abb78d6248 | |||
| 74e645dd96 | |||
| a2aedcfef3 | |||
| f06f98604f | |||
| d631cdba30 | |||
| 839c941f9e | |||
| 9bd8b62dc4 | |||
| 339798448a | |||
| 9d401a8e69 | |||
| 5cc8f0f0ed | |||
| ebca8ce6e3 | |||
| 7acb66688b | |||
| 0f6629109a | |||
| cb19d91c2b | |||
| a35c8c0dbe | |||
| 8575e7471b | |||
| fe82fa28be | |||
| a74410228a | |||
| dd615deb94 | |||
| 4c7515bbf7 | |||
| 961632639e | |||
| 0dd81432c0 | |||
| 942eec9a0d | |||
| e9412abd21 | |||
| 7b80f3d19d | |||
| ddac3190bd | |||
| b069d87c93 | |||
| 0b52b54c7b | |||
| 658bace2c6 | |||
| c27be08ab1 | |||
| 009b263e9e | |||
| 08bce6511b | |||
| 509f9914e4 | |||
| 09389db745 | |||
| 6a4a410a3c | |||
| 465d332b1a | |||
| 284767614a | |||
| dd589f8b21 | |||
| 6f4a0b01e9 | |||
| 92cc4c31d6 | |||
| 10c96b1862 | |||
| 60e9290414 | |||
| 802c149399 | |||
| ba5aa49a0f | |||
| f59558f29f | |||
| d7791b94c1 | |||
| 5c38e9a5f7 | |||
| c8aa56fe47 | |||
| 9a50d540de | |||
| 091218a685 | |||
| 12fccd6962 | |||
| 3b52181d23 | |||
| 1974f3a939 | |||
| eaf84748f9 | |||
| 0ce4262e64 | |||
| a6969ff360 | |||
| 414bb0f90b | |||
| a284f02869 | |||
| 80cbaa6cab | |||
| 1e895e3cb6 | |||
| ddb3c496e3 | |||
| b2c827a24f | |||
| 104259a58b | |||
| 1f664148cc | |||
| c6adff587a | |||
| c75a116b29 | |||
| 6e8a4ec8c9 | |||
| 625f1c4060 | |||
| 7dfe49b3a3 | |||
| 30973771f4 | |||
| ec17163206 | |||
| efba2a92a2 | |||
| f80e24cc28 | |||
| df1edce5c6 | |||
| f6f7303172 | |||
| fe193ec37e | |||
| a03d9c9cd7 | |||
| 8011c1827a | |||
| 05a00fad3a | |||
| c03c01cd2a | |||
| 5839134243 | |||
| e150f1a2b0 | |||
| 15367851e3 | |||
| 26080d353b | |||
| 138a1d2f32 | |||
| 2cbe7dde04 | |||
| c3b211d0c5 | |||
| 44f7cc4152 | |||
| 9eb5d1362b | |||
| 0c1b622f73 | |||
| 385306319a | |||
| 7db70452d8 | |||
| b00b2781be | |||
| b1d83a7bdc | |||
| 084bf82ea9 | |||
| ef1e07f1f4 | |||
| cf3670cefc | |||
| 5692de9cca | |||
| c212b302f1 | |||
| 381445f0ae | |||
| 55b11f3d90 | |||
| 2b8a9fdcc6 | |||
| 9d4bfa624a | |||
| 6aeda1eac2 | |||
| 4cfdbe6e6a | |||
| 79b2254f28 | |||
| 1590055049 | |||
| 168d986213 | |||
| cb085ae7df | |||
| d1f02f0e46 | |||
| c43172e281 | |||
| 897a37822a | |||
| 708a913046 | |||
| 1d6bb3df9c | |||
| 9160036e1a | |||
| b574b07b11 | |||
| 0a61b619c4 | |||
| 9ac6482127 | |||
| da373d0a62 | |||
| 0548ed7da4 | |||
| 312da06756 | |||
| 0bbf5eb080 | |||
| 6b363120ce | |||
| 02e5ac542c | |||
| bc6abb6492 | |||
| 689b00e46c | |||
| ca70989963 | |||
| 5dab967b6c | |||
| a3deaf6546 | |||
| a527942356 | |||
| 0827d7ba35 | |||
| b65659d631 | |||
| 2a8e1354f8 | |||
| da5245071d | |||
| 67a7d47a1d | |||
| 1551ef8ce0 | |||
| 3765d22ab8 | |||
| 46d6cdf9ba | |||
| ab1c48aefc | |||
| 1d1a2e2e55 | |||
| 969fabe77c | |||
| ca727cf906 | |||
| 86257e57da | |||
| b4f073bd1d | |||
| 2c21846b06 | |||
| 6ea2fe1cac | |||
| ce7ed9420a | |||
| ef2e0e4919 | |||
| 59d57ee694 | |||
| c61d31a568 | |||
| b592d4516e | |||
| 6232638023 | |||
| 5f3c8b43db | |||
| 1cb92ad7b9 | |||
| f454bae025 | |||
| 3f77ddb377 | |||
| 24db348ef8 | |||
| 66485f7219 | |||
| 3ff4718408 | |||
| c381a2c006 | |||
| b6c78e01ff | |||
| 6eb4d5b1d6 | |||
| ec1205f6fa | |||
| 7b57d170bd | |||
| 90ec23a80a | |||
| e6bee6f56b | |||
| f1122edb0e | |||
| 45145efcb8 | |||
| a24bf7f146 | |||
| dd93c0a30b | |||
| 3feee6543c | |||
| b33b79d9a7 | |||
| 956e7abf0d | |||
| 18833de76b | |||
| 04d93333bf | |||
| 895a2dae62 | |||
| aecfaab249 | |||
| 78f50ff693 | |||
| 55120fa816 | |||
| 660ef9ca23 | |||
| b1723520d2 | |||
| a650a72554 | |||
| 7b21921b9d | |||
| a3c42992c7 | |||
| cb97244afa | |||
| 7aea8c0dda | |||
| f723d64780 | |||
| 55728112ce |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/venv/
|
||||
/*.bundle
|
||||
|
||||
37
Makefile
37
Makefile
@@ -1,17 +1,27 @@
|
||||
DISTRO := $(shell . /etc/os-release && echo $$NAME)
|
||||
|
||||
venv = ./venv
|
||||
requirements = requirements.txt
|
||||
activate = . $(venv)/bin/activate
|
||||
pip = pip
|
||||
ansible = venv/bin/ansible-playbook
|
||||
ansible_run = $(activate) && ansible-playbook -e ansible_python_interpreter=/usr/bin/python3 --inventory localhost, --diff --verbose ./playbook.yml ${ANSIBLE_EXTRA_ARGS}
|
||||
|
||||
ifeq ($(DISTRO),Ubuntu)
|
||||
ansible_run = $(activate) && ansible-playbook -e ansible_python_interpreter=/usr/bin/python3 --inventory localhost, --diff ./playbook.yml ${ANSIBLE_EXTRA_ARGS}
|
||||
else
|
||||
ansible_run =ansible-playbook -e ansible_python_interpreter=/usr/bin/python3 --inventory localhost, --diff ./playbook.yml ${ANSIBLE_EXTRA_ARGS}
|
||||
endif
|
||||
|
||||
.PHONY: all
|
||||
all: | venv $(ansible)
|
||||
all: | venv
|
||||
$(ansible_run)
|
||||
|
||||
.PHONY: update
|
||||
update: $(ansible)
|
||||
$(ansible_run) --tags update
|
||||
.PHONY: config
|
||||
config: | venv
|
||||
$(ansible_run) --skip-tags system-update
|
||||
|
||||
.PHONY: system-update
|
||||
system-update: venv
|
||||
$(ansible_run) --tags system-update
|
||||
|
||||
.PHONY: reboot
|
||||
reboot:
|
||||
@@ -25,11 +35,11 @@ poweroff:
|
||||
weekend: | update poweroff
|
||||
|
||||
.PHONY: packages
|
||||
packages: $(ansible)
|
||||
packages: venv
|
||||
$(ansible_run) --tags packages
|
||||
|
||||
.PHONY: dotfiles
|
||||
dotfiles: $(ansible)
|
||||
dotfiles: venv
|
||||
$(ansible_run) --tags dotfiles
|
||||
|
||||
.PHONY: clean
|
||||
@@ -40,11 +50,14 @@ clean:
|
||||
test:
|
||||
./test-in-docker.sh
|
||||
|
||||
$(ansible): venv
|
||||
|
||||
ifeq ($(DISTRO), Ubuntux)
|
||||
venv:
|
||||
python3 -m venv $(venv)
|
||||
$(activate) && $(pip) install -r $(requirements)
|
||||
python3 -m venv $(venv)
|
||||
$(activate) && $(pip) install -r $(requirements)
|
||||
else
|
||||
venv:
|
||||
true
|
||||
endif
|
||||
|
||||
.PHONY: freeze
|
||||
freeze:
|
||||
|
||||
@@ -15,6 +15,15 @@ users:
|
||||
- i-dont-care-about-cookies
|
||||
- floccus
|
||||
manage_css: true
|
||||
media:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- passff
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
manage_css: true
|
||||
bigger_font: true
|
||||
mail: hannes@hkoerber.de
|
||||
git_gpg_sign: false
|
||||
gpg_agent: true
|
||||
|
||||
@@ -59,12 +59,12 @@ users:
|
||||
- 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
|
||||
1: DP-3
|
||||
2: DP-3
|
||||
3: DP-4
|
||||
4: DP-4
|
||||
5: DP-4
|
||||
6: DP-4
|
||||
7: eDP-1
|
||||
8: eDP-1
|
||||
9: eDP-1
|
||||
|
||||
@@ -6,8 +6,15 @@ Wants=blueman.service
|
||||
Wants=dpms.service
|
||||
Wants=dunst.service
|
||||
Wants=element.service
|
||||
{% for profile in (user.firefox_profiles|default({})).keys() %}
|
||||
{% for profile, config in (user.firefox_profiles|default({})).items() %}
|
||||
{% if config.bigger_font|default(false) is sameas false %}
|
||||
Wants=firefox@{{ profile }}.service
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for profile, config in (user.firefox_profiles|default({})).items() %}
|
||||
{% if config.bigger_font|default(false) is sameas true %}
|
||||
Wants=firefox-gtk-override-bigger-font@{{ profile }}.service
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
Wants=gpg-agent.service
|
||||
Wants=gnome-keyring.service
|
||||
@@ -25,4 +32,5 @@ Wants=steam.service
|
||||
Wants=touchpad.service
|
||||
Wants=xresources.service
|
||||
Wants=yubikey-touch-detector.service
|
||||
Wants=kdeconnect.service
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env firefox --setDefaultBrowser -P %i
|
||||
PassEnvironment=DISPLAY
|
||||
Environment=XDG_CONFIG_HOME=%h/.config/gtk-3.0-overrides/bigger-font/
|
||||
Restart=always
|
||||
8
autostart/services/kdeconnect.service
Normal file
8
autostart/services/kdeconnect.service
Normal file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
After=windowmanager.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env kdeconnect-indicator
|
||||
PassEnvironment=DISPLAY
|
||||
Restart=always
|
||||
@@ -3,6 +3,6 @@ ConditionPathExists=%h/.var/run/features/restic_backup
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/bin/restic-backup
|
||||
ExecStart=%h/restic/restic-backup
|
||||
RemainAfterExit=true
|
||||
PassEnvironment=DISPLAY
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
[Unit]
|
||||
BindsTo=autostart.target
|
||||
PartOf=gpg-agent.service
|
||||
After=windowmanager.target
|
||||
After=gpg-agent.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env yubikey-touch-detector -libnotify
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
set -o errexit
|
||||
|
||||
cd ~/projects/personal/time-tracking/
|
||||
cd ~/code/personal/time-tracking/
|
||||
source venv/bin/activate
|
||||
source ~/.attendance_env
|
||||
|
||||
|
||||
@@ -8,13 +8,13 @@ log() {
|
||||
printf '[%s] %s\n' "$(date -uIseconds)" "$*" >> "$_logfile"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
enable)
|
||||
case "$1 $2" in
|
||||
"set-paused false")
|
||||
log "Enabling dunst"
|
||||
systemctl --user --no-block kill --signal SIGUSR2 dunst
|
||||
|
||||
;;
|
||||
disable)
|
||||
"set-paused true")
|
||||
log "Disabling dunst"
|
||||
systemctl --user --no-block kill --signal SIGUSR1 dunst
|
||||
;;
|
||||
|
||||
40
bin/nato
40
bin/nato
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import os.path
|
||||
|
||||
hash = {
|
||||
'A': 'Alpha',
|
||||
@@ -43,6 +44,45 @@ hash = {
|
||||
'.': 'Stop',
|
||||
}
|
||||
|
||||
de = {
|
||||
'A': 'Anton',
|
||||
'Ä': 'Ärger',
|
||||
'B': 'Berta',
|
||||
'C': 'Cäsar',
|
||||
'D': 'Dora',
|
||||
'E': 'Emil',
|
||||
'F': 'Friedrich',
|
||||
'G': 'Gustav',
|
||||
'H': 'Heinrich',
|
||||
'I': 'Ida',
|
||||
'J': 'Julius',
|
||||
'K': 'Kaufmann',
|
||||
'L': 'Ludwig',
|
||||
'M': 'Martha',
|
||||
'N': 'Nordpol',
|
||||
'O': 'Otto',
|
||||
'Ö': 'Ökonom',
|
||||
'P': 'Paula',
|
||||
'Q': 'Quelle',
|
||||
'R': 'Richard',
|
||||
'S': 'Samuel',
|
||||
'ß': 'Eszett',
|
||||
'T': 'Theodor',
|
||||
'U': 'Ulrich',
|
||||
'Ü': 'Übermut',
|
||||
'V': 'Viktor',
|
||||
'W': 'Wilhelm',
|
||||
'X': 'Xanthippe',
|
||||
'Y': 'Ypsilon',
|
||||
'Z': 'Zacharias',
|
||||
'-': 'Strich',
|
||||
'.': 'Punkt',
|
||||
}
|
||||
|
||||
if os.path.basename(sys.argv[0]) == 'natode':
|
||||
hash = de
|
||||
|
||||
|
||||
if len(sys.argv) < 2 or sys.argv[1] == '-':
|
||||
text = [line.strip() for line in sys.stdin.readlines()]
|
||||
else:
|
||||
|
||||
1
bin/natode
Symbolic link
1
bin/natode
Symbolic link
@@ -0,0 +1 @@
|
||||
nato
|
||||
14
bin/pf
Executable file
14
bin/pf
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import json
|
||||
import yaml
|
||||
import subprocess
|
||||
|
||||
jqexpression = sys.argv[1]
|
||||
|
||||
jqprocess = subprocess.Popen(["jq", "-r", jqexpression], stdin=subprocess.PIPE, text=True)
|
||||
|
||||
document = [d for d in yaml.safe_load_all(sys.stdin)][-1]
|
||||
|
||||
json.dump(document, jqprocess.stdin)
|
||||
@@ -5,6 +5,9 @@ empty_directories:
|
||||
- name: .config/nvim
|
||||
- name: .config/rofi
|
||||
- name: .config/gtk-3.0
|
||||
- name: .config/gtk-3.0-overrides
|
||||
- name: .config/gtk-3.0-overrides/bigger-font/
|
||||
- name: .config/gtk-3.0-overrides/bigger-font/gtk-3.0
|
||||
- name: .config/qt5ct
|
||||
dotfiles:
|
||||
- from: git/gitconfig
|
||||
@@ -62,6 +65,9 @@ dotfiles:
|
||||
- from: gtk/gtk-3.0.ini
|
||||
to: .config/gtk-3.0/settings.ini
|
||||
template: true
|
||||
- from: gtk/gtk-3.0-bigger-font.ini
|
||||
to: .config/gtk-3.0-overrides/bigger-font/gtk-3.0/settings.ini
|
||||
template: true
|
||||
- from: gtk/gtkrc-2.0
|
||||
to: .gtkrc-2.0
|
||||
template: true
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
frame_width = 2
|
||||
|
||||
# Defines color of the frame around the notification window.
|
||||
frame_color = "#e16b40"
|
||||
frame_color = "#ff964f"
|
||||
|
||||
# Define a color for the separator.
|
||||
# possible values are:
|
||||
|
||||
@@ -120,3 +120,5 @@
|
||||
|
||||
[init]
|
||||
defaultBranch = master
|
||||
[safe]
|
||||
directory = /var/lib/dotfiles
|
||||
|
||||
@@ -6,7 +6,7 @@ name = "misc/rbackupd"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "git@github.com:hakoerber/rbackupd.git"
|
||||
url = "ssh://git@github.com/hakoerber/rbackupd.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
@@ -59,7 +59,7 @@ name = "misc/wifiqr"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/wifi-qr.git"
|
||||
url = "ssh://git@github.com/hakoerber/wifiqr.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
@@ -74,7 +74,7 @@ type = "ssh"
|
||||
name = "misc/xftwidth"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
name = "github"
|
||||
url = "ssh://git@github.com/hakoerber/xftwidth.git"
|
||||
type = "ssh"
|
||||
|
||||
@@ -83,10 +83,6 @@ name = "upstream"
|
||||
url = "https://github.com/vixus0/xftwidth"
|
||||
type = "https"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "x-hidecursor"
|
||||
remotes = []
|
||||
|
||||
[[trees.repos]]
|
||||
name = "git-repo-manager"
|
||||
|
||||
@@ -124,11 +120,6 @@ 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"
|
||||
|
||||
@@ -204,7 +195,11 @@ type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "lea-michael-hochzeit"
|
||||
remotes = []
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hannes/lea-michi-hochzeit.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "builddoc"
|
||||
@@ -236,11 +231,11 @@ url = "ssh://git@github.com/hakoerber/fizzbuzz.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "ggj/2018/the-lost-son"
|
||||
name = "ggj/2018-the-lost-son"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com:niklas-heer/the-lost-son.git"
|
||||
url = "ssh://git@github.com/niklas-heer/the-lost-son.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
@@ -248,7 +243,7 @@ name = "ggj/2019-claim-your-world"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@github.com:theintroverts/claim-your-world.git"
|
||||
url = "ssh://git@github.com/theintroverts/claim-your-world.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
@@ -313,5 +308,18 @@ type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "origin"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hakoerber/aws-glacier-backup.git"
|
||||
url = "ssh://git@code.hkoerber.de:2222/hannes/aws-glacier-backup.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos]]
|
||||
name = "unclutter-xfixes"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "github"
|
||||
url = "git@github.com:hakoerber/unclutter-xfixes.git"
|
||||
type = "ssh"
|
||||
|
||||
[[trees.repos.remotes]]
|
||||
name = "upstream"
|
||||
url = "https://github.com/Airblader/unclutter-xfixes"
|
||||
type = "https"
|
||||
|
||||
15
gtk/gtk-3.0-bigger-font.ini.j2
Normal file
15
gtk/gtk-3.0-bigger-font.ini.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
[Settings]
|
||||
gtk-theme-name=Breeze
|
||||
gtk-icon-theme-name=breeze-dark
|
||||
gtk-font-name=DejaVu Sans {{ ((machine.font_size|int - 2)|float * 2.0) | round(0, 'floor') | int }}
|
||||
gtk-cursor-theme-name=breeze_cursors
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=1
|
||||
gtk-menu-images=1
|
||||
gtk-enable-event-sounds=1
|
||||
gtk-enable-input-feedback-sounds=1
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintfull
|
||||
16
i3/config.j2
16
i3/config.j2
@@ -319,10 +319,10 @@ assign [class="^Wine$"] $workspace10
|
||||
################################################################################
|
||||
|
||||
# class border backgr. text indicator
|
||||
client.focused #E16B40 #E16B40 #000000 #FF0000
|
||||
client.focused_inactive #333333 #5f676a #ffffff #484e50
|
||||
client.unfocused #333333 #202020 #cccccc #292d2e
|
||||
client.urgent #2f343a #900000 #ffffff #900000
|
||||
client.focused #e5b567 #e5b567 #000000 #FF0000
|
||||
client.focused_inactive #272822 #5f676a #ffffff #484e50
|
||||
client.unfocused #1C1C1C #272822 #cccccc #292d2e
|
||||
client.urgent #272822 #900000 #ffffff #900000
|
||||
|
||||
################################################################################
|
||||
### APPLICATION SPECIFIC SETTINGS ##############################################
|
||||
@@ -380,17 +380,17 @@ bar {
|
||||
colors {
|
||||
background #272822
|
||||
statusline #ffffff
|
||||
separator #444444
|
||||
# separator #e16b40
|
||||
separator #555555
|
||||
# separator #e5b567
|
||||
|
||||
# focused_background #303030
|
||||
# focused_separator #272822
|
||||
|
||||
focused_workspace #e16b40 #272822 #ffffff
|
||||
focused_workspace #e5b567 #272822 #ffffff
|
||||
active_workspace #272822 #5f676a #ffffff
|
||||
inactive_workspace #272822 #272822 #dddddd
|
||||
urgent_workspace #D00000 #D00000 #272822
|
||||
binding_mode #272822 #e16b40 #272822
|
||||
binding_mode #272822 #e5b567 #272822
|
||||
}
|
||||
|
||||
i3bar_command i3bar
|
||||
|
||||
@@ -52,10 +52,11 @@ reset_screen() {
|
||||
lock_and_screen_off() {
|
||||
lock &
|
||||
_pid=$!
|
||||
dunstctl disable
|
||||
dunst_paused=$(dunstctl is-paused)
|
||||
[[ "${dunst_paused}" != "true" ]] && dunstctl set-paused true
|
||||
screen_off
|
||||
wait $_pid
|
||||
dunstctl enable
|
||||
[[ "${dunst_paused}" != "true" ]] && dunstctl set-paused false
|
||||
reset_screen
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ is_on() {
|
||||
|
||||
switch_on() {
|
||||
touch "${_status_file}"
|
||||
dunstctl disable &
|
||||
dunstctl set-paused true &
|
||||
systemctl --user --no-block stop redshift.service
|
||||
systemctl --user --no-block stop spotify.service
|
||||
~/.i3/scripts/bar-update "external_script presentation_mode"
|
||||
@@ -19,7 +19,7 @@ switch_on() {
|
||||
|
||||
switch_off() {
|
||||
rm -f "${_status_file}"
|
||||
dunstctl enable &
|
||||
dunstctl set-paused false &
|
||||
systemctl --user --no-block start redshift.service
|
||||
systemctl --user --no-block start spotify.service
|
||||
~/.i3/scripts/bar-update "external_script presentation_mode"
|
||||
|
||||
@@ -68,7 +68,6 @@ _install() {
|
||||
if ! command -v python3 >/dev/null ; then
|
||||
printf 'Python3 not installed, installing ...\n'
|
||||
_install "python3"
|
||||
_install "python3-venv"
|
||||
printf 'Done\n'
|
||||
fi
|
||||
|
||||
@@ -91,6 +90,10 @@ if ! python3 -c 'import venv' 2>/dev/null ; then
|
||||
printf 'Done\n'
|
||||
fi
|
||||
|
||||
if [[ $NAME == "Arch Linux" ]] ; then
|
||||
_install "ansible"
|
||||
fi
|
||||
|
||||
cd "$DOTDIR" && make
|
||||
|
||||
# fix permissions of the directory
|
||||
|
||||
14
packages.yml
14
packages.yml
@@ -183,6 +183,9 @@ packages:
|
||||
- python-ruamel-yaml
|
||||
- python-gitpython
|
||||
- python-semver
|
||||
black:
|
||||
ubuntu: ["black"]
|
||||
archlinux: ["python-black"]
|
||||
xbacklight:
|
||||
ubuntu: ["xbacklight"]
|
||||
archlinux: ["xorg-xbacklight"]
|
||||
@@ -377,7 +380,16 @@ packages:
|
||||
archlinux: ["ncdu"]
|
||||
font-utils:
|
||||
ubuntu: ["woff-tools", "woff2"]
|
||||
archinux: ["woff2"]
|
||||
archlinux: ["woff2"]
|
||||
jq:
|
||||
ubuntu: ["jq"]
|
||||
archlinux: ["jq"]
|
||||
musl:
|
||||
ubuntu: ["musl", "musl-tools"]
|
||||
archlinux: ["musl"]
|
||||
kdeconnect:
|
||||
ubuntu: ["kdeconnect"]
|
||||
archlinux: ["kdeconnect"]
|
||||
|
||||
remove:
|
||||
mousepad:
|
||||
|
||||
207
playbook.yml
207
playbook.yml
@@ -49,6 +49,19 @@
|
||||
become: true
|
||||
when: distro == 'ubuntu'
|
||||
|
||||
- block:
|
||||
- name: install ansible requirements
|
||||
package:
|
||||
name: "{{ packages[distro] }}"
|
||||
state: present
|
||||
become: true
|
||||
vars:
|
||||
packages:
|
||||
archlinux:
|
||||
- python-jmespath
|
||||
ubuntu:
|
||||
- python3-jmespath
|
||||
|
||||
- block:
|
||||
- name: enable multilib repository
|
||||
blockinfile:
|
||||
@@ -87,7 +100,7 @@
|
||||
changed_when: false
|
||||
|
||||
when: distro == 'archlinux'
|
||||
tags: [update]
|
||||
tags: [system-update]
|
||||
|
||||
- block:
|
||||
- name: install sudo
|
||||
@@ -101,9 +114,6 @@
|
||||
name:
|
||||
- base-devel
|
||||
- git
|
||||
- cargo
|
||||
- asp
|
||||
- bat
|
||||
become: true
|
||||
|
||||
- name: create build user on arch
|
||||
@@ -138,7 +148,7 @@
|
||||
shell: |
|
||||
set -o errexit
|
||||
|
||||
if pacman -Qi paru >/dev/null 2>&1; then
|
||||
if pacman -Qi paru-bin >/dev/null 2>&1; then
|
||||
exit 100
|
||||
fi
|
||||
exit 0
|
||||
@@ -156,9 +166,9 @@
|
||||
mkdir -p /tmp/paru-build
|
||||
cd /tmp/paru-build
|
||||
|
||||
curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/paru.tar.gz
|
||||
tar xvf paru.tar.gz
|
||||
cd paru
|
||||
curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/paru-bin.tar.gz
|
||||
tar xvf paru-bin.tar.gz
|
||||
cd paru-bin
|
||||
makepkg
|
||||
args:
|
||||
executable: /bin/bash
|
||||
@@ -170,7 +180,7 @@
|
||||
shell: |
|
||||
set -o errexit
|
||||
|
||||
pacman --noconfirm -U /tmp/paru-build/paru/paru-*.pkg.tar.zst
|
||||
pacman --noconfirm -U /tmp/paru-build/paru-bin/paru-bin-*.pkg.tar.zst
|
||||
rm -rf /tmp/paru-build
|
||||
args:
|
||||
executable: /bin/bash
|
||||
@@ -186,7 +196,7 @@
|
||||
file: packages.yml
|
||||
|
||||
- name: force-update iptables to iptables-nft on arch
|
||||
shell: pacman -Q iptables-nft || yes | pacman -S iptables-nft
|
||||
shell: pacman -Q iptables && yes | pacman -S iptables-nft
|
||||
changed_when: false
|
||||
become: true
|
||||
when: distro == 'archlinux'
|
||||
@@ -211,6 +221,15 @@
|
||||
assert:
|
||||
that: "defined_packages_remove|length == distro_packages_remove|length"
|
||||
|
||||
- name: remove packages
|
||||
package:
|
||||
name: "{{ packages|json_query(query) }}"
|
||||
state: absent
|
||||
become: true
|
||||
vars:
|
||||
query: "{{ 'remove.*.%s[]'|format(distro) }}"
|
||||
when: distro != 'ubuntu'
|
||||
|
||||
- name: install packages
|
||||
package:
|
||||
name: "{{ packages|json_query(query) }}"
|
||||
@@ -220,12 +239,14 @@
|
||||
query: "{{ 'list.*.%s[]'|format(distro) }}"
|
||||
|
||||
- name: remove packages
|
||||
package:
|
||||
apt:
|
||||
name: "{{ packages|json_query(query) }}"
|
||||
state: absent
|
||||
purge: true
|
||||
become: true
|
||||
vars:
|
||||
query: "{{ 'remove.*.%s[]'|format(distro) }}"
|
||||
when: distro == 'ubuntu'
|
||||
|
||||
- name: install machine-specific packages
|
||||
package:
|
||||
@@ -400,8 +421,18 @@
|
||||
system: true
|
||||
become: true
|
||||
|
||||
- set_fact:
|
||||
cargo_env: . ~/.cargo/env
|
||||
when: distro == 'ubuntu'
|
||||
|
||||
- set_fact:
|
||||
# Do NOT just use `"true"`. Due to some YAML fuckery, it will be
|
||||
# capitalized and the commands will fail.
|
||||
cargo_env: "/bin/true"
|
||||
when: distro == 'archlinux'
|
||||
|
||||
- name: install rustup on ubuntu
|
||||
shell: curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
shell: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal
|
||||
args:
|
||||
creates: /var/lib/rust_build/.cargo/bin/rustup
|
||||
become: true
|
||||
@@ -409,38 +440,62 @@
|
||||
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
|
||||
shell: "{{ cargo_env }} && rustup toolchain install stable && rustup default stable"
|
||||
become: true
|
||||
become_user: rust_build
|
||||
changed_when: false
|
||||
|
||||
- name: add rustup nightly toolchain
|
||||
shell: . ~/.cargo/env && rustup toolchain install nightly
|
||||
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
|
||||
- name: add rustup additional toolchains
|
||||
shell: "{{ cargo_env }} && rustup toolchain install {{ item }}"
|
||||
become: true
|
||||
become_user: rust_build
|
||||
changed_when: false
|
||||
loop: "{{ cargo_crate_list|map(attribute='toolchain', default='none')|reject('in', ['none', 'stable', 'nightly']) }}"
|
||||
|
||||
- name: add additional targets
|
||||
shell: "{{ cargo_env }} && rustup +{{ item.toolchain|default('stable') }} target add {{ item.target }}"
|
||||
become: true
|
||||
become_user: rust_build
|
||||
changed_when: false
|
||||
when:
|
||||
- '"target" in item'
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
|
||||
- name: assert that nofeatures is not actually a flag
|
||||
assert:
|
||||
that: '"nofeatures" not in item.features|default([])'
|
||||
msg: Wow, "nofeatures" is actually a feature. Update the playbook!
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
|
||||
- name: assert that only proper sources are defined
|
||||
assert:
|
||||
that: item.source|default("crates.io") in ("crates.io", "git")
|
||||
msg: "Invalid source: {{ item.source|default('x') }}"
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
|
||||
- name: install required packages
|
||||
package:
|
||||
state: present
|
||||
name: "{{ item.required_packages|map(attribute=distro) }}"
|
||||
when: item.required_packages is defined
|
||||
become: true
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
|
||||
- name: build rust crates from crates.io
|
||||
shell: |
|
||||
set -o errexit
|
||||
. ~/.cargo/env
|
||||
{{ 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 }}
|
||||
rustup run {{ item.toolchain|default('stable') }} cargo install --features "{{ item.features|default([])|join(' ') }}" {{ "--target " ~ item.target if item.target is defined else '' }} --version {{ item.version }} {{ item.crate }}
|
||||
mv /var/lib/rust_build/.cargo/bin/{{ item.binary }} /var/lib/rust_build/.cargo/bin/{{ binary_id_cratesio }}
|
||||
args:
|
||||
creates: /var/lib/rust_build/.cargo/bin/{{ item.binary }}.{{ item.version }}
|
||||
creates: /var/lib/rust_build/.cargo/bin/{{ binary_id_cratesio }}
|
||||
become: true # do not build as root!
|
||||
become_user: rust_build
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
@@ -449,10 +504,11 @@
|
||||
- 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 }}
|
||||
{{ cargo_env }}
|
||||
rustup run {{ item.toolchain|default('stable') }} cargo install --features "{{ item.features|default([])|join(' ') }}" {{ "--target " ~ item.target if item.target is defined else '' }} --git {{ item.url }} --branch {{ item.branch }}
|
||||
mv /var/lib/rust_build/.cargo/bin/{{ item.binary }} /var/lib/rust_build/.cargo/bin/{{ binary_id_git }}
|
||||
args:
|
||||
creates: /var/lib/rust_build/.cargo/bin/{{ item.binary }}
|
||||
creates: /var/lib/rust_build/.cargo/bin/{{ binary_id_git }}
|
||||
become: true # do not build as root!
|
||||
become_user: rust_build
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
@@ -469,27 +525,27 @@
|
||||
|
||||
- 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 }}
|
||||
mv /var/lib/rust_build/.cargo/bin/{{ binary_id_cratesio }} /usr/local/lib/binaries/{{ binary_id_cratesio }}
|
||||
ln -s /usr/local/lib/binaries/{{ binary_id_cratesio }} /var/lib/rust_build/.cargo/bin/{{ binary_id_cratesio }}
|
||||
args:
|
||||
creates: /usr/local/lib/binaries/{{ item.binary }}.{{ item.version }}
|
||||
creates: /usr/local/lib/binaries/{{ binary_id_cratesio }}
|
||||
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 }}
|
||||
mv /var/lib/rust_build/.cargo/bin/{{ binary_id_git }} /usr/local/lib/binaries/{{ binary_id_git }}
|
||||
ln -s /usr/local/lib/binaries/{{ binary_id_git }} /var/lib/rust_build/.cargo/bin/{{ binary_id_git }}
|
||||
args:
|
||||
creates: /usr/local/lib/binaries/{{ item.binary }}
|
||||
creates: /usr/local/lib/binaries/{{ binary_id_git }}
|
||||
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 }}
|
||||
src: /usr/local/lib/binaries/{{ binary_id_cratesio }}
|
||||
dest: /usr/local/bin/{{ item.binary }}
|
||||
owner: root
|
||||
group: root
|
||||
@@ -501,7 +557,7 @@
|
||||
|
||||
- name: link binaries for git
|
||||
file:
|
||||
src: /usr/local/lib/binaries/{{ item.binary }}
|
||||
src: /usr/local/lib/binaries/{{ binary_id_git }}
|
||||
dest: /usr/local/bin/{{ item.binary }}
|
||||
owner: root
|
||||
group: root
|
||||
@@ -510,6 +566,57 @@
|
||||
become: true
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
when: item.source|default('crates.io') == 'git'
|
||||
|
||||
# Important: clean up the symlinks BEFORE the binaries they point to.
|
||||
# Otherwise, ansible will skip them because `ansible.builtin.fileglob`
|
||||
# does not match broken symlinks for some reason.
|
||||
- name: clean up old binaries for creates.io in /var/lib/rust_build
|
||||
command: rm -- {{ binaries | join (" ") }}
|
||||
vars:
|
||||
binaries: "{{ lookup('ansible.builtin.fileglob', '/var/lib/rust_build/.cargo/bin/' ~ item.binary ~ '.*', wantlist=True) | reject('eq', '/var/lib/rust_build/.cargo/bin/' ~ binary_id_cratesio) }}"
|
||||
changed_when: binaries | length > 0
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
become: true
|
||||
when:
|
||||
- item.source|default('crates.io') == 'crates.io'
|
||||
- binaries | length > 0
|
||||
|
||||
- name: clean up old binaries for creates.io in /usr/local/lib
|
||||
command: rm -- {{ binaries | join (" ") }}
|
||||
vars:
|
||||
binaries: "{{ lookup('ansible.builtin.fileglob', '/usr/local/lib/binaries/' ~ item.binary ~ '.*', wantlist=True) | reject('eq', '/usr/local/lib/binaries/' ~ binary_id_cratesio) }}"
|
||||
changed_when: binaries | length > 0
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
become: true
|
||||
when:
|
||||
- item.source|default('crates.io') == 'crates.io'
|
||||
- binaries | length > 0
|
||||
|
||||
- name: clean up old binaries for git in /var/lib/rust_build
|
||||
command: rm -- {{ binaries | join (" ") }}
|
||||
vars:
|
||||
binaries: "{{ lookup('ansible.builtin.fileglob', '/var/lib/rust_build/.cargo/bin/' ~ item.binary ~ '.*', wantlist=True) | reject('eq', '/var/lib/rust_build/.cargo/bin/' ~ binary_id_git) }}"
|
||||
changed_when: binaries | length > 0
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
become: true
|
||||
when:
|
||||
- item.source|default('crates.io') == 'git'
|
||||
- binaries | length > 0
|
||||
|
||||
- name: clean up old binaries for git in /usr/local/lib
|
||||
command: rm -- {{ binaries | join (" ") }}
|
||||
vars:
|
||||
binaries: "{{ lookup('ansible.builtin.fileglob', '/usr/local/lib/binaries/' ~ item.binary ~ '.*', wantlist=True) | reject('eq', '/usr/local/lib/binaries/' ~ binary_id_git) }}"
|
||||
changed_when: binaries | length > 0
|
||||
loop: "{{ cargo_crate_list }}"
|
||||
become: true
|
||||
when:
|
||||
- item.source|default('crates.io') == 'git'
|
||||
- binaries | length > 0
|
||||
|
||||
vars:
|
||||
binary_id_cratesio: "{{ item.binary }}.{{ item.toolchain|default('stable') }}.{{ item.features|default(['nofeatures'])|join('_') }}.{{ item.version }}"
|
||||
binary_id_git: "{{ item.binary }}.{{ item.toolchain|default('stable') }}.{{ item.features|default(['nofeatures'])|join('_') }}.{{ item.branch }}"
|
||||
tags:
|
||||
- rust_binaries
|
||||
|
||||
@@ -565,7 +672,7 @@
|
||||
copy:
|
||||
dest: /etc/profile.d/go.sh
|
||||
content: |
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
export PATH=/usr/local/go/bin:$PATH
|
||||
export GOROOT=/usr/local/go
|
||||
owner: root
|
||||
group: root
|
||||
@@ -598,12 +705,16 @@
|
||||
tempfile:
|
||||
state: directory
|
||||
register: alacritty_build_tempdir
|
||||
become: true
|
||||
become_user: rust_build
|
||||
when: not alacritty_binary.stat.exists
|
||||
|
||||
- name: build alacritty
|
||||
command: cargo install alacritty --root ./out
|
||||
shell: . ~/.cargo/env && rustup run stable cargo install alacritty --root ./out
|
||||
args:
|
||||
chdir: "{{ alacritty_build_tempdir.path }}"
|
||||
become: true
|
||||
become_user: rust_build
|
||||
when: not alacritty_binary.stat.exists
|
||||
|
||||
- name: install alacritty
|
||||
@@ -615,6 +726,8 @@
|
||||
file:
|
||||
path: "{{ alacritty_build_tempdir.path }}"
|
||||
state: absent
|
||||
become: true
|
||||
become_user: rust_build
|
||||
when: not alacritty_binary.stat.exists
|
||||
|
||||
when: distro == 'ubuntu'
|
||||
@@ -650,6 +763,7 @@
|
||||
file:
|
||||
path: "{{ yubikey_touch_detector_build_tempdir.path }}"
|
||||
state: absent
|
||||
become: true
|
||||
when: not yubikey_touch_detector_binary.stat.exists
|
||||
|
||||
when: distro == 'ubuntu'
|
||||
@@ -659,8 +773,8 @@
|
||||
- block:
|
||||
- name: add spotify apt key
|
||||
apt_key:
|
||||
url: "https://download.spotify.com/debian/pubkey_0D811D58.gpg"
|
||||
id: "D1742AD60D811D58"
|
||||
url: "https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg"
|
||||
id: "5E3C45D7B312C643"
|
||||
become: true
|
||||
|
||||
- name: add spotify repository
|
||||
@@ -679,7 +793,7 @@
|
||||
- block:
|
||||
- name: install spotify from AUR via paru
|
||||
shell: |
|
||||
curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | gpg --import
|
||||
curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | gpg --import
|
||||
yes 1 | paru --skipreview --aur --batchinstall --noconfirm -S spotify
|
||||
become: true
|
||||
become_user: paru
|
||||
@@ -717,6 +831,15 @@
|
||||
become: true
|
||||
become_user: root
|
||||
|
||||
- name: fix permissions for dotfiles directory
|
||||
shell: |
|
||||
chown --changes --recursive dotfiles:dotfiles /var/lib/dotfiles
|
||||
chmod --changes --recursive g+wX /var/lib/dotfiles
|
||||
register: dotfiles_permission_change
|
||||
become: true
|
||||
become_user: root
|
||||
changed_when: dotfiles_permission_change.stdout_lines|length > 0
|
||||
|
||||
- set_fact:
|
||||
users: "{{ machine.users }}"
|
||||
tags:
|
||||
|
||||
@@ -6,9 +6,13 @@ outputs:
|
||||
mode: 1920x1080
|
||||
scale: 1x1
|
||||
pos: "0x0" # beware of hex
|
||||
- name: DP-1-1
|
||||
- name: DP-1
|
||||
disable: true
|
||||
- name: DP-1-2
|
||||
- name: DP-2
|
||||
disable: true
|
||||
- name: DP-1-3
|
||||
- name: DP-3
|
||||
disable: true
|
||||
- name: DP-4
|
||||
disable: true
|
||||
- name: DP-5
|
||||
disable: true
|
||||
|
||||
21
screencfg/neptune/three-screens-laptop-right.yml
Normal file
21
screencfg/neptune/three-screens-laptop-right.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
reset: true
|
||||
outputs:
|
||||
- name: eDP-1
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
scale: 0.7x0.7
|
||||
# x: 2*1920
|
||||
# y: 1080-(0.7*1080)
|
||||
pos: "3840x324" # beware of hex
|
||||
- name: DP-4
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
pos: "1920x0" # beware of hex
|
||||
reset: true
|
||||
- name: DP-3
|
||||
primary: True
|
||||
opts:
|
||||
mode: 1920x1080
|
||||
left-of: DP-4
|
||||
pos: "0x0" # beware of hex
|
||||
reset: true
|
||||
@@ -21,6 +21,8 @@ gzip -k -f -v "${tmpdir}/dotfiles.tar"
|
||||
test_ares() {
|
||||
if [[ -d "/var/cache/pacman/pkg/" ]] ; then
|
||||
dockeropts=(-v "/var/cache/pacman/pkg/:/var/cache/pacman/pkg_host/")
|
||||
else
|
||||
echo "Warning: /var/cache/pacman/pkg/ does not exist. Create it to speed up multiple runs" >&2
|
||||
fi
|
||||
docker pull docker.io/library/archlinux:base
|
||||
docker run \
|
||||
@@ -38,10 +40,10 @@ test_ares() {
|
||||
# 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
|
||||
sed -i '"'"'s/^#\?\(CacheDir.*\)/CacheDir = \/var\/cache\/pacman\/pkg_host\/\n\1/'"'"' /etc/pacman.conf
|
||||
|
||||
pacman -Syu --noconfirm linux python3
|
||||
mkdir /var/cache/pacman/pkg_host/
|
||||
mkdir -p /var/cache/pacman/pkg_host/
|
||||
pacman -Syu --noconfirm linux
|
||||
cd $(mktemp -d)
|
||||
tar xf /tmp/dotfiles.tar.gz -C .
|
||||
ANSIBLE_EXTRA_ARGS="-e manage_services=false" ./install.sh
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
set -g default-command "${SHELL}"
|
||||
set -g default-terminal "xterm-256color"
|
||||
# This *has* to be set to something with `screen-`, do not set this bindly
|
||||
# to $TERM, e.g. "alacritty"!
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
set -g set-titles on
|
||||
set -g set-titles-string '#S'
|
||||
@@ -38,26 +40,36 @@ set-window-option -g pane-base-index 1
|
||||
set -g status-position bottom
|
||||
set -g status-justify left
|
||||
|
||||
# https://wiki.archlinux.org/title/tmux#256_colors
|
||||
set -ga terminal-overrides ",alacritty:Tc"
|
||||
|
||||
set-option -g status-bg '#272822'
|
||||
set-option -g status-fg white
|
||||
setw -g pane-border-status bottom
|
||||
setw -g pane-border-format ''
|
||||
|
||||
setw -g pane-border-lines double
|
||||
setw -g pane-border-style "fg=#555555"
|
||||
setw -g pane-active-border-style "fg=#e5b567"
|
||||
setw -g pane-border-indicators colour
|
||||
|
||||
set-option -g status-style bg=default
|
||||
|
||||
set-window-option -g window-status-format ' #I: #W #F '
|
||||
set-window-option -g window-status-current-format ' #I: #W #F '
|
||||
set-window-option -g window-status-current-style "bg=#e5b567,fg=black"
|
||||
|
||||
set-window-option -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
set-window-option -g visual-activity off
|
||||
set-window-option -g window-status-activity-style "bg=#ff77777,fg=black"
|
||||
|
||||
set-window-option -g automatic-rename on
|
||||
set-window-option -g automatic-rename-format '#{pane_current_command}'
|
||||
|
||||
set-window-option -g window-status-separator ' '
|
||||
|
||||
set -g status-left " #[bg=#A6E22E,fg=#000000] #{session_name} #[bg=#272822] "
|
||||
set -g status-right "#[bg=#CCCCCC,fg=#555555] #{host} #[bg=#272822] "
|
||||
set -g status-left " #[bg=#6c99bb,fg=#2e2e2e] #{session_name} #[bg=default] "
|
||||
set -g status-right "#[bg=#CCCCCC,fg=#555555] #{host} #[bg=default] "
|
||||
set -g status-left-length 100
|
||||
|
||||
set -g status-style "bg=#272822,fg=#FFFFFF"
|
||||
set -g message-style "bg=#CCCCCC,fg=#555555"
|
||||
|
||||
# vertical = | in this case
|
||||
|
||||
32
user.yml
32
user.yml
@@ -314,7 +314,7 @@
|
||||
register: ycm_before_update
|
||||
changed_when: false
|
||||
failed_when: ycm_before_update.rc not in (0, 200)
|
||||
tags: [update]
|
||||
tags: [user-update]
|
||||
|
||||
- name: install vim plugins
|
||||
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugInstall +qall'
|
||||
@@ -329,12 +329,12 @@
|
||||
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]
|
||||
tags: [user-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]
|
||||
tags: [user-update]
|
||||
|
||||
- name: get ycm version after update
|
||||
shell: |
|
||||
@@ -344,15 +344,12 @@
|
||||
executable: /bin/bash
|
||||
register: ycm_after_update
|
||||
changed_when: false
|
||||
tags: [update]
|
||||
tags: [user-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 --force-sudo
|
||||
python3 ./install.py
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: ycm_compile_output
|
||||
@@ -361,7 +358,7 @@
|
||||
(ycm_before_update.rc == 200)
|
||||
or
|
||||
(ycm_before_update.stdout != ycm_after_update.stdout)
|
||||
tags: [update]
|
||||
tags: [user-update]
|
||||
tags: [vim-plugins]
|
||||
|
||||
- block:
|
||||
@@ -382,7 +379,6 @@
|
||||
- set_fact:
|
||||
firefox_preferences:
|
||||
browser.aboutConfig.showWarning: false
|
||||
browser.download.useDownloadDir: false
|
||||
extensions.pocket.enabled: false
|
||||
toolkit.legacyUserProfileCustomizations.stylesheets: true
|
||||
browser.contentblocking.category: "strict"
|
||||
@@ -414,6 +410,22 @@
|
||||
# "Allow Firefox to install and run studies"
|
||||
app.shield.optoutstudies.enabled: false
|
||||
|
||||
# "Check spelling as you type"
|
||||
layout.spellcheckDefault: 0
|
||||
|
||||
# Ask for download directory
|
||||
browser.download.useDownloadDir: false
|
||||
|
||||
# (Try to) disable automatic update, as firefox is pulling a Windows
|
||||
app.update.auto: false
|
||||
app.update.service.enabled: false
|
||||
|
||||
# remove this camera / microphone overlay when in calls or similar
|
||||
privacy.webrtc.legacyGlobalIndicator: false
|
||||
|
||||
# use distro updates instead
|
||||
app.update.auto: false
|
||||
|
||||
- include_role:
|
||||
name: firefox
|
||||
vars:
|
||||
|
||||
@@ -1,28 +1,39 @@
|
||||
terraform_version: 1.0.2
|
||||
kubectl_version: v1.22.3
|
||||
go_version: "1.17.1"
|
||||
portfolio_performace_version: "0.55.0"
|
||||
terraform_version: 1.1.9
|
||||
kubectl_version: v1.23.6
|
||||
go_version: "1.18.3"
|
||||
portfolio_performace_version: "0.57.2"
|
||||
cargo_crate_list:
|
||||
- crate: just
|
||||
binary: just
|
||||
version: 0.10.2
|
||||
version: 1.2.0
|
||||
- crate: ripgrep
|
||||
binary: rg
|
||||
version: 13.0.0
|
||||
features:
|
||||
- pcre2
|
||||
- simd-accel
|
||||
toolchain: nightly # necessary for SIMD
|
||||
required_packages:
|
||||
- ubuntu: libpcre2-dev
|
||||
archlinux: pcre2
|
||||
- crate: fd-find
|
||||
binary: fd
|
||||
version: 8.2.1
|
||||
version: 8.4.0
|
||||
- crate: bat
|
||||
binary: bat
|
||||
version: 0.18.3
|
||||
version: 0.21.0
|
||||
- crate: exa
|
||||
binary: exa
|
||||
version: 0.10.1
|
||||
toolchain: "1.60" # Fails with 1.61, see https://github.com/rust-lang/rust/issues/97255
|
||||
- crate: watchexec-cli
|
||||
binary: watchexec
|
||||
version: 1.17.1
|
||||
version: 1.20.2
|
||||
- url: https://github.com/hakoerber/git-repo-manager
|
||||
binary: grm
|
||||
branch: master
|
||||
branch: develop
|
||||
source: git
|
||||
toolchain: nightly
|
||||
features:
|
||||
- static-build
|
||||
target: x86_64-unknown-linux-musl
|
||||
|
||||
71
vim/vimrc
71
vim/vimrc
@@ -13,8 +13,8 @@ Plug 'majutsushi/tagbar'
|
||||
" Plug 'nblock/vim-dokuwiki'
|
||||
Plug 'reedes/vim-pencil'
|
||||
Plug 'saltstack/salt-vim'
|
||||
"Plug 'sickill/vim-monokai'
|
||||
Plug 'patstockwell/vim-monokai-tasty'
|
||||
Plug 'sickill/vim-monokai'
|
||||
" Plug 'patstockwell/vim-monokai-tasty'
|
||||
" Plug 'sjl/gundo.vim'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'tpope/vim-fugitive'
|
||||
@@ -25,7 +25,7 @@ Plug 'junegunn/goyo.vim'
|
||||
Plug 'junegunn/limelight.vim'
|
||||
" Plug 'sheerun/vim-polyglot'
|
||||
" Plug 'freitass/todo.txt-vim'
|
||||
Plug 'Valloric/YouCompleteMe'
|
||||
Plug 'Valloric/YouCompleteMe', {'commit': '4df6f35f0c9f9aec21a3f567397496b5dee6acc7'}
|
||||
Plug 'nathanaelkane/vim-indent-guides'
|
||||
|
||||
"Plugin 'Lokaltog/vim-easymotion'
|
||||
@@ -47,7 +47,7 @@ Plug 'vimwiki/vimwiki'
|
||||
Plug 'rodjek/vim-puppet'
|
||||
Plug 'suan/vim-instant-markdown'
|
||||
"Plug 'marshallward/vim-restructuredtext'
|
||||
"Plug 'vim-syntastic/syntastic'
|
||||
Plug 'vim-syntastic/syntastic'
|
||||
"Plug 'ElmCast/elm-vim'
|
||||
"Plug 'avh4/elm-format'
|
||||
|
||||
@@ -73,6 +73,19 @@ Plug 'evanleck/vim-svelte', {'branch': 'main'}
|
||||
|
||||
Plug 'cespare/vim-toml', { 'branch': 'main' }
|
||||
|
||||
"Plug 'rust-lang/rust.vim'
|
||||
|
||||
" Plug 'autozimu/LanguageClient-neovim', {
|
||||
" \ 'branch': 'next',
|
||||
" \ 'do': 'bash install.sh',
|
||||
" \ }
|
||||
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
Plug 'simrat39/rust-tools.nvim'
|
||||
|
||||
"Plug 'dense-analysis/ale'
|
||||
|
||||
|
||||
call plug#end()
|
||||
filetype plugin indent on
|
||||
|
||||
@@ -174,6 +187,8 @@ set linebreak
|
||||
set wrap
|
||||
set wrapscan
|
||||
|
||||
" == to use guicolors in terminal ==
|
||||
set termguicolors
|
||||
|
||||
" === keybinds ===
|
||||
set pastetoggle=<F11>
|
||||
@@ -244,7 +259,7 @@ nnoremap Q <nop>
|
||||
" let g:solarized_contrast="normal"
|
||||
" let g:solarized_visibility="normal"
|
||||
syntax enable
|
||||
silent! colorscheme vim-monokai-tasty
|
||||
silent! colorscheme monokai
|
||||
|
||||
" == tagbar ==
|
||||
nnoremap <F10> :TagbarToggle<CR>
|
||||
@@ -274,7 +289,7 @@ let g:tagbar_foldlevel = 99 " unfold all
|
||||
"let g:airline#extensions#whitespace#checks = ['trailing']
|
||||
|
||||
let g:lightline = {
|
||||
\ 'colorscheme': 'powerline',
|
||||
\ 'colorscheme': 'wombat',
|
||||
\ 'active': {
|
||||
\ 'left': [ [ 'mode', 'paste' ],
|
||||
\ [ 'readonly', 'filename', 'modified', 'helloworld' ] ],
|
||||
@@ -355,3 +370,47 @@ let g:go_info_mode='gopls'
|
||||
|
||||
" https://stackoverflow.com/a/8585343
|
||||
map <leader>q :bp<bar>sp<bar>bn<bar>bd<CR>
|
||||
|
||||
let g:rustfmt_autosave = 1
|
||||
|
||||
let g:LanguageClient_serverCommands = {
|
||||
\ 'rust': ['rust-analyzer'],
|
||||
\ }
|
||||
|
||||
" let g:ale_linters = {'rust': ['analyzer']}
|
||||
|
||||
lua <<EOF
|
||||
local nvim_lsp = require'lspconfig'
|
||||
|
||||
local opts = {
|
||||
tools = { -- rust-tools options
|
||||
autoSetHints = true,
|
||||
hover_with_actions = true,
|
||||
inlay_hints = {
|
||||
show_parameter_hints = false,
|
||||
parameter_hints_prefix = "",
|
||||
other_hints_prefix = "",
|
||||
},
|
||||
},
|
||||
|
||||
-- all the opts to send to nvim-lspconfig
|
||||
-- these override the defaults set by rust-tools.nvim
|
||||
-- see https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md#rust_analyzer
|
||||
server = {
|
||||
-- on_attach is a callback called when the language server attachs to the buffer
|
||||
-- on_attach = on_attach,
|
||||
settings = {
|
||||
-- to enable rust-analyzer settings visit:
|
||||
-- https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/generated_config.adoc
|
||||
["rust-analyzer"] = {
|
||||
-- enable clippy on save
|
||||
checkOnSave = {
|
||||
command = "clippy"
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
require('rust-tools').setup(opts)
|
||||
EOF
|
||||
|
||||
@@ -7,7 +7,7 @@ _path=(
|
||||
)
|
||||
|
||||
for part in ${_path[@]} ; do
|
||||
PATH="$PATH:${part}"
|
||||
PATH="${part}:$PATH"
|
||||
done
|
||||
export PATH
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ alias twa="task add"
|
||||
alias twd="task done"
|
||||
alias inbox="task add +inbox"
|
||||
|
||||
alias yaml2json="python3 -c 'import sys, yaml, json; json.dump(yaml.safe_load(sys.stdin), sys.stdout, indent=4)'"
|
||||
alias yaml2json="python3 -c 'import sys, yaml, json; json.dump([d for d in yaml.safe_load_all(sys.stdin)][-1], 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'
|
||||
|
||||
Reference in New Issue
Block a user