Compare commits

...

19 Commits

Author SHA1 Message Date
9b67c4b425 Install geeqie 2024-05-26 12:26:26 +02:00
883ee1ac2a Add iscp analogous to issh 2024-05-26 12:26:26 +02:00
cee72be14a Install flake8 and mypy 2024-05-26 12:26:26 +02:00
007749aedd Disable flake8 in helix 2024-05-26 12:26:26 +02:00
4014996441 Update spotify 2024-05-26 12:26:26 +02:00
68ca420b81 Use Jetbrains Mono 2024-05-26 12:26:26 +02:00
11bfe46eeb Install buildkit for docker 2024-05-26 12:26:26 +02:00
12c5d39033 Use 4 spaces for python & dockerfiles 2024-05-26 12:26:26 +02:00
ea2f2451e1 Configure scdaemon to make yubikey work properly 2024-05-26 12:26:26 +02:00
e2b2391cf7 Configure gnupg config directory properly 2024-05-26 12:26:26 +02:00
3a54d52051 Get rid of upstream gpg-agent user units 2024-05-26 12:26:26 +02:00
6b0105fa71 Fix nvidia driver installation 2024-05-26 12:26:26 +02:00
1fa78b506f Install additional icon font 2024-05-26 12:26:25 +02:00
b68eb1e33d More verbose output 2024-05-26 12:25:52 +02:00
be6e67821f Resolve packages to their actuall install target 2024-05-26 12:25:52 +02:00
c4e335a6a3 Disable shellcheck for PKGBUILD source 2024-05-26 12:25:52 +02:00
e07736bfb4 Add sqlx-cli 2024-05-26 12:25:52 +02:00
7e56f43195 zsh: Remove unused function 2024-05-26 12:25:52 +02:00
1a37f4ef64 i3: Fix presentation mode toggle 2024-05-26 12:25:52 +02:00
12 changed files with 74 additions and 31 deletions

View File

@@ -12,19 +12,19 @@ WINIT_X11_SCALE_FACTOR = "1"
size = {{ machine.font_size_2 }} size = {{ machine.font_size_2 }}
[font.bold] [font.bold]
family = "Inconsolata" family = "JetBrainsMono"
style = "Bold" style = "Bold"
[font.bold_italic] [font.bold_italic]
family = "Inconsolata" family = "JetBrainsMono"
style = "Bold Italic" style = "Bold Italic"
[font.italic] [font.italic]
family = "Inconsolata" family = "JetBrainsMono"
style = "Italic" style = "Italic"
[font.normal] [font.normal]
family = "Inconsolata" family = "JetBrainsMono"
style = "Regular" style = "Regular"
[selection] [selection]

View File

@@ -15,12 +15,16 @@ empty_directories:
- name: .config/i3 - name: .config/i3
- name: .config/zsh - name: .config/zsh
- name: .config/alacritty - name: .config/alacritty
- name: .local/state/gnupg/
mode: '0700'
dotfiles: dotfiles:
- from: git/gitconfig - from: git/gitconfig
to: .config/git/config to: .config/git/config
template: true template: true
- from: gnupg/dirmngr.conf - from: gnupg/dirmngr.conf
to: .local/state/gnupg/dirmngr.conf to: .local/state/gnupg/dirmngr.conf
- from: gnupg/scdaemon.conf
to: .local/state/gnupg/scdaemon.conf
- from: gnupg/gpg-agent.conf - from: gnupg/gpg-agent.conf
to: .local/state/gnupg/gpg-agent.conf to: .local/state/gnupg/gpg-agent.conf
template: true template: true

2
gnupg/scdaemon.conf Normal file
View File

@@ -0,0 +1,2 @@
# makes yubikey work more reliably
disable-ccid

View File

@@ -1,3 +1,15 @@
[[language]] [[language]]
name = "bash" name = "bash"
indent = { unit = " " , tab-width = 4 } indent = { unit = " " , tab-width = 4 }
[language-server.pylsp.config.pylsp.plugins]
flake8 = {enabled = false}
[[language]]
name = "python"
indent = { unit = " " , tab-width = 4 }
[[language]]
name = "dockerfile"
indent = { unit = " " , tab-width = 4 }

View File

@@ -288,7 +288,7 @@ assign [class="^Wine$"] $workspace10
floating_minimum_size 0 x 0 floating_minimum_size 0 x 0
floating_maximum_size 0 x 0 floating_maximum_size 0 x 0
font pango:Inconsolata {{ machine.font_size_1 }} font pango:JetBrainsMono {{ machine.font_size_1 }}
################################################################################ ################################################################################
### COLOR SETTINGS ############################################################# ### COLOR SETTINGS #############################################################
@@ -349,7 +349,7 @@ bar {
id bar-0 id bar-0
font pango:Inconsolata, FontAwesome {{ machine.font_size_1 }} font pango:JetBrainsMono, FontAwesome {{ machine.font_size_1 }}
colors { colors {
background #272822 background #272822

View File

@@ -67,9 +67,9 @@ missing_format = ""
[[block]] [[block]]
block = "toggle" block = "toggle"
format = "  $icon " format = "  $icon "
command_on = "$HOME/.i3/scripts/presentation-mode toggle ; pkill -SIGRTMIN+0 i3status-rs" command_on = "$XDG_CONFIG_HOME/i3/scripts/presentation-mode toggle ; pkill -SIGRTMIN+0 i3status-rs"
command_off = "$HOME/.i3/scripts/presentation-mode toggle ; pkill -SIGRTMIN+0 i3status-rs" command_off = "$XDG_CONFIG_HOME/i3/scripts/presentation-mode toggle ; pkill -SIGRTMIN+0 i3status-rs"
command_state = "[[ $($HOME/.i3/scripts/presentation-mode status) == on ]] && echo active" command_state = "[[ $($XDG_CONFIG_HOME/i3/scripts/presentation-mode status) == on ]] && echo active"
[[block]] [[block]]
block = "toggle" block = "toggle"

View File

@@ -55,11 +55,16 @@ xdotool:
arandr: arandr:
archlinux: ["arandr"] archlinux: ["arandr"]
docker: docker:
archlinux: ["docker", "docker-compose"] archlinux: ["docker", "docker-compose", "docker-buildx"]
font-awesome: font-awesome:
archlinux: ["ttf-font-awesome", "otf-font-awesome", "awesome-terminal-fonts"] archlinux:
- ttf-font-awesome
- otf-font-awesome
- awesome-terminal-fonts
font-inconsolata: font-inconsolata:
archlinux: ["ttf-inconsolata"] archlinux: ["ttf-inconsolata"]
font-jetbrainsmono:
archlinux: ["ttf-jetbrains-mono"]
font-dejavu: font-dejavu:
archlinux: ["ttf-dejavu"] archlinux: ["ttf-dejavu"]
font-libertine: font-libertine:
@@ -143,6 +148,8 @@ python:
- bandit - bandit
- python-pyflakes - python-pyflakes
- python-pylint - python-pylint
- flake8
- mypy
python-modules: python-modules:
archlinux: archlinux:
- python-ruamel-yaml - python-ruamel-yaml
@@ -500,3 +507,9 @@ wine:
- vkd3d - vkd3d
- lib32-vkd3d - lib32-vkd3d
- lib32-gnutls - lib32-gnutls
sqlx:
archlinux:
- sqlx-cli
geeqie:
archlinux:
- geeqie

View File

@@ -655,7 +655,7 @@
block: block:
- name: install nouveau packages - name: install nouveau packages
package: package:
name: "{{ drivers.gpu.gpu }}" name: "{{ drivers.gpu.nvidia }}"
state: present state: present
become: true become: true
when: when:
@@ -683,6 +683,17 @@
state: absent state: absent
become: true become: true
- name: try to make gpg agent behave
block:
- name: configure pacman to skip installing gpg user units
blockinfile:
path: /etc/pacman.conf
insertafter: '^#NoExtract'
block: |
NoExtract = usr/lib/systemd/user/gpg-agent*
marker: "# {mark} ANSIBLE MANAGED noextract gpg-agent"
become: true
- name: backlight configuration - name: backlight configuration
tags: tags:
- backlight - backlight

View File

@@ -21,6 +21,7 @@ proctected=(
) )
for pkgbuild in pkgbuilds/*/PKGBUILD ; do for pkgbuild in pkgbuilds/*/PKGBUILD ; do
# shellcheck disable=SC1090
source "${pkgbuild}" source "${pkgbuild}"
aurdeps+=("${depends[@]%%[<=>]*}" "${makedepends[@]%%[<=>]*}" "${pkgname}") aurdeps+=("${depends[@]%%[<=>]*}" "${makedepends[@]%%[<=>]*}" "${pkgname}")
done done
@@ -31,7 +32,19 @@ readarray -d $'\0' -t packages_to_remove < <(comm --zero-terminated -13 \
<(cat \ <(cat \
<(<packages.yml yaml2json | jq --raw-output0 'map(.archlinux) | flatten[]') \ <(<packages.yml yaml2json | jq --raw-output0 'map(.archlinux) | flatten[]') \
<(for dep in "${aurdeps[@]}" "${cpu_packages[@]}" "${gpu_packages[@]}" ; do printf '%s\0' "${dep}" ; done) \ <(for dep in "${aurdeps[@]}" "${cpu_packages[@]}" "${gpu_packages[@]}" ; do printf '%s\0' "${dep}" ; done) \
| sort -zu) \ | while IFS= read -r -d $'\0' package; do
set -o pipefail
if resolved_name=$(pacman -Qi "${package}" 2>/dev/null | grep ^Name | grep ^Name | cut -d ':' -f 2 | tr -d ' ') ; then
if [[ "${resolved_name}" != "${package}" ]] ; then
if pacman -Qq --explicit "${resolved_name}" >/dev/null ; then
printf '%s\0' "${resolved_name}"
continue
fi
fi
fi
printf '%s\0' "${package}"
done | sort -zu
) \
<(pacman -Qq --explicit | xargs -I "{}" printf '%s\0' "{}" | sort -zu) \ <(pacman -Qq --explicit | xargs -I "{}" printf '%s\0' "{}" | sort -zu) \
| while IFS= read -r -d $'\0' package; do | while IFS= read -r -d $'\0' package; do
skip=0 skip=0
@@ -47,6 +60,10 @@ readarray -d $'\0' -t packages_to_remove < <(comm --zero-terminated -13 \
done) done)
if (( "${#packages_to_remove[@]}" > 0 )) ; then if (( "${#packages_to_remove[@]}" > 0 )) ; then
echo "found the following explicitly installed packages that are not configured:"
for pkg in "${packages_to_remove[@]}" ; do
echo "${pkg}"
done
sudo pacman -Rcns "${packages_to_remove[@]}" "${@}" || exit $? sudo pacman -Rcns "${packages_to_remove[@]}" "${@}" || exit $?
exit 123 exit 123
fi fi

View File

@@ -54,8 +54,6 @@ export ANSIBLE_GALAXY_CACHE_DIR="${XDG_CACHE_HOME}/ansible/galaxy_cache"
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
export GNUPGHOME="$XDG_STATE_HOME"/gnupg export GNUPGHOME="$XDG_STATE_HOME"/gnupg
mkdir -p "${GNUPGHOME}"
chmod --quiet 700 "${GNUPGHOME}"
export PYTHON_HISTORY=$XDG_STATE_HOME/python/history export PYTHON_HISTORY=$XDG_STATE_HOME/python/history
export PYTHONPYCACHEPREFIX=$XDG_CACHE_HOME/python export PYTHONPYCACHEPREFIX=$XDG_CACHE_HOME/python

View File

@@ -132,12 +132,12 @@ alias json2yaml="python3 -c 'import sys, yaml, json; yaml.safe_dump(json.loads(s
alias currentbranch='git rev-parse --abbrev-ref HEAD' alias currentbranch='git rev-parse --abbrev-ref HEAD'
alias issh="ssh -o StrictHostKeyChecking=false -o UserKnownHostsFile=/dev/null"
alias gfix='git commit --amend --no-edit' alias gfix='git commit --amend --no-edit'
alias gfixa='git commit --amend --no-edit --all ' alias gfixa='git commit --amend --no-edit --all '
alias gfixp='git commit --amend --no-edit --patch' alias gfixp='git commit --amend --no-edit --patch'
alias issh="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" alias issh="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
alias iscp="scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
alias newpw="pwgen --secure 25 1" alias newpw="pwgen --secure 25 1"
@@ -327,20 +327,6 @@ gb() {
fi fi
} }
bm() {
case "$1" in
dev)
cd "$HOME/development/projects"
;;
dot)
cd "$HOME/dotfiles"
;;
*)
echo "unknown target"
;;
esac
}
embiggen() { embiggen() {
enscript --no-header --media=A4 --landscape --font="DejaVuSansMono30" -o - 2>/dev/null | ps2pdf - | zathura - enscript --no-header --media=A4 --landscape --font="DejaVuSansMono30" -o - 2>/dev/null | ps2pdf - | zathura -
} }