Compare commits

...

3 Commits

Author SHA1 Message Date
1e075ffb13 Formatter run 2024-11-10 16:09:03 +01:00
1429eaf34f make: Add fmt target 2024-11-10 16:08:21 +01:00
4ec1268b2e Update README 2024-11-10 16:07:58 +01:00
9 changed files with 124 additions and 106 deletions

View File

@@ -34,3 +34,8 @@ dotfiles:
.PHONY: test .PHONY: test
test: test:
./test-in-docker.sh ./test-in-docker.sh
.PHONY: fmt
fmt:
git ls-files -z '*.md' | xargs -0 prettier --print-width 80 --prose-wrap always --write
git ls-files -z '*.toml' | xargs -0 taplo format

View File

@@ -1,27 +1,45 @@
# dotfiles # dotfiles
My configuration files. My configuration files for my systems. Uses Ansible for local configuration.
# Installation ## Supported OS
Only Arch Linux is supported
## Bootstrapping
Bootstrapping is specific to the exact machine that is installed. See
`_machines/` for machine-specific configuration, and `install_scripts/` for the
machine install scripts.
They are keyed by hostname.
For easier installation, the install scripts are available via shortlinks. To
(re)install a new machine from a Arch live environment:
```
curl --proto '=https' -sSfL https://s.hkoerber.de/i/${hostname}.sh | bash
```
## Manual Installation
Because it manages multiple users on the system, the directory is supposed to be Because it manages multiple users on the system, the directory is supposed to be
at `/var/lib/dotfiles`. at `/var/lib/dotfiles`.
To setup the dotfiles: To set up the dotfiles:
1. `git clone https://github.com/hakoerber/dotfiles.git ~/dotfiles` 1. `git clone https://github.com/hakoerber/dotfiles.git ~/dotfiles`
2. `cd ~/dotfiles && ./install.sh` 2. `cd ~/dotfiles && ./install.sh`
# Partial application ## Partial application
To apply only a subset of the changes, use ansible tags that are available via To apply only a subset of the changes, use ansible tags that are available via
the Makefile: the Makefile:
| Command | Description | | Command | Description |
| --- | --- | | --------------- | -------------------------------------------------- |
| `make update` | Updates the system with the latest packages |
| `make packages` | Installs all defined packages (see `packages.yml`) | | `make packages` | Installs all defined packages (see `packages.yml`) |
| `make dotfiles` | Manages the users' dotfiles | | `make dotfiles` | Manages the users' dotfiles |
Note that these are not supported on a first bootstrap run. Only use them after Note that these are not supported on a first bootstrap run. Only use them after
the bootstrap to update existing configuration. the bootstrap to update existing configuration.

View File

@@ -7,25 +7,25 @@ foreground = '#24292f'
# Normal colors # Normal colors
[colors.normal] [colors.normal]
black = '#24292e' black = '#24292e'
red = '#d73a49' red = '#d73a49'
green = '#28a745' green = '#28a745'
yellow = '#dbab09' yellow = '#dbab09'
blue = '#0366d6' blue = '#0366d6'
magenta = '#5a32a3' magenta = '#5a32a3'
cyan = '#0598bc' cyan = '#0598bc'
white = '#6a737d' white = '#6a737d'
# Bright colors # Bright colors
[colors.bright] [colors.bright]
black = '#959da5' black = '#959da5'
red = '#cb2431' red = '#cb2431'
green = '#22863a' green = '#22863a'
yellow = '#b08800' yellow = '#b08800'
blue = '#005cc5' blue = '#005cc5'
magenta = '#5a32a3' magenta = '#5a32a3'
cyan = '#3192aa' cyan = '#3192aa'
white = '#d1d5da' white = '#d1d5da'
[[colors.indexed_colors]] [[colors.indexed_colors]]
index = 16 index = 16

View File

@@ -21,4 +21,3 @@ blue = "#66d9ef"
magenta = "#ae81ff" magenta = "#ae81ff"
cyan = "#a1efe4" cyan = "#a1efe4"
white = "#f9f8f5" white = "#f9f8f5"

View File

@@ -5,12 +5,7 @@ idle-timeout = 0
completion-trigger-len = 2 completion-trigger-len = 2
[editor.statusline] [editor.statusline]
left = [ left = ["mode", "separator", "file-name", "file-modification-indicator"]
"mode",
"separator",
"file-name",
"file-modification-indicator",
]
right = [ right = [
"spinner", "spinner",

View File

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

View File

@@ -14,81 +14,81 @@ backlight_10 = "\U0001f312"
backlight_11 = "\U0001f312" backlight_11 = "\U0001f312"
backlight_12 = "\U0001f312" backlight_12 = "\U0001f312"
backlight_13 = "\U0001f312" backlight_13 = "\U0001f312"
bat_charging = "\uf1e6" # fa-plug bat_charging = "\uf1e6" # fa-plug
bat_discharging = "\uf242" # fa-battery-half bat_discharging = "\uf242" # fa-battery-half
bat_10 = "\uf244" # fa-battery-empty bat_10 = "\uf244" # fa-battery-empty
bat_20 = "\uf243" # fa-battery-quarter bat_20 = "\uf243" # fa-battery-quarter
bat_30 = "\uf243" # fa-battery-quarter bat_30 = "\uf243" # fa-battery-quarter
bat_40 = "\uf243" # fa-battery-quarter bat_40 = "\uf243" # fa-battery-quarter
bat_50 = "\uf242" # fa-battery-half bat_50 = "\uf242" # fa-battery-half
bat_60 = "\uf242" # fa-battery-half bat_60 = "\uf242" # fa-battery-half
bat_70 = "\uf241" # fa-battery-three-quarters bat_70 = "\uf241" # fa-battery-three-quarters
bat_80 = "\uf241" # fa-battery-three-quarters bat_80 = "\uf241" # fa-battery-three-quarters
bat_90 = "\uf241" # fa-battery-three-quarters bat_90 = "\uf241" # fa-battery-three-quarters
bat_full = "\uf240" # fa-battery-full bat_full = "\uf240" # fa-battery-full
bat_not_available = "\uf244" # fa-battery-empty bat_not_available = "\uf244" # fa-battery-empty
bell = "\uf0f3" # fa-bell bell = "\uf0f3" # fa-bell
bell-slash = "\uf1f7" # fa-bell-slash-o bell-slash = "\uf1f7" # fa-bell-slash-o
bluetooth = "\uf294" # fa-bluetooth-b bluetooth = "\uf294" # fa-bluetooth-b
calendar = "\uf073" # fa-calendar calendar = "\uf073" # fa-calendar
cogs = "\uf085" # fa-cogs cogs = "\uf085" # fa-cogs
cpu = "\uf0e4" # fa-dashboard cpu = "\uf0e4" # fa-dashboard
cpu_boost_off = "\uf204" # fa-toggle-off cpu_boost_off = "\uf204" # fa-toggle-off
cpu_boost_on = "\uf205" # fa-toggle-on cpu_boost_on = "\uf205" # fa-toggle-on
disk_drive = "\uf0a0" # fa-hdd-o disk_drive = "\uf0a0" # fa-hdd-o
docker = "\uf21a" # fa-ship docker = "\uf21a" # fa-ship
github = "\uf09b" # fa-github github = "\uf09b" # fa-github
gpu = "\uf26c" # fa-television gpu = "\uf26c" # fa-television
headphones = "\uf025" # fa-headphones headphones = "\uf025" # fa-headphones
joystick = "\uf11b" # fa-gamepad joystick = "\uf11b" # fa-gamepad
keyboard = "\uf11c" # fa-keyboard-o keyboard = "\uf11c" # fa-keyboard-o
mail = "\uf0e0" # fa-envelope mail = "\uf0e0" # fa-envelope
memory_mem = "\uf2db" # fa-microchip memory_mem = "\uf2db" # fa-microchip
memory_swap = "\uf0a0" # fa-hdd-o memory_swap = "\uf0a0" # fa-hdd-o
mouse = "\uf245" # fa-mouse-pointer mouse = "\uf245" # fa-mouse-pointer
music = "\uf001" # fa-music music = "\uf001" # fa-music
music_next = "\uf061" # fa-arrow-right music_next = "\uf061" # fa-arrow-right
music_pause = "\uf04c" # fa-pause music_pause = "\uf04c" # fa-pause
music_play = "\uf04b" # fa-play music_play = "\uf04b" # fa-play
music_prev = "\uf060" # fa-arrow-left music_prev = "\uf060" # fa-arrow-left
net_bridge = "\uf0e8" # fa-sitemap net_bridge = "\uf0e8" # fa-sitemap
net_down = "\u2b07" net_down = "\u2b07"
net_loopback = "LO" net_loopback = "LO"
net_modem = "\uf095" # fa-phone net_modem = "\uf095" # fa-phone
net_up = "\u2b06" net_up = "\u2b06"
net_vpn = "\uf023" # fa-lock net_vpn = "\uf023" # fa-lock
net_wired = "\uf0ac" # fa-globe net_wired = "\uf0ac" # fa-globe
net_wireless = "\uf1eb" # fa-wifi net_wireless = "\uf1eb" # fa-wifi
notification = "\uf0a2" # fa-bell-o notification = "\uf0a2" # fa-bell-o
phone = "\uf10b" # fa-mobile phone = "\uf10b" # fa-mobile
phone_disconnected = "\U0001f4f5" # https://unicode-table.com/en/1F4F5/ phone_disconnected = "\U0001f4f5" # https://unicode-table.com/en/1F4F5/
ping = "\u21ba" ping = "\u21ba"
pomodoro = "\U0001f345" pomodoro = "\U0001f345"
pomodoro_break = "\uf0f4" # fa-coffee pomodoro_break = "\uf0f4" # fa-coffee
pomodoro_paused = "\uf04c" # fa-pause pomodoro_paused = "\uf04c" # fa-pause
pomodoro_started = "\uf04b" # fa-play pomodoro_started = "\uf04b" # fa-play
pomodoro_stopped = "\uf04d" # fa-stop pomodoro_stopped = "\uf04d" # fa-stop
resolution = "\uf096" # fa-square-o resolution = "\uf096" # fa-square-o
tasks = "\uf0ae" # fa-tasks tasks = "\uf0ae" # fa-tasks
thermometer = "\uf2c8" # fa-thermometer-3 thermometer = "\uf2c8" # fa-thermometer-3
time = "\uf017" # fa-clock-o time = "\uf017" # fa-clock-o
toggle_off = "\uf204" # fa-toggle-off toggle_off = "\uf204" # fa-toggle-off
toggle_on = "\uf205" # fa-toggle-on toggle_on = "\uf205" # fa-toggle-on
unknown = "\uf128" # fa-question unknown = "\uf128" # fa-question
update = "\uf062" # fa-arrow-up update = "\uf062" # fa-arrow-up
uptime = "\uf017" # fa-clock-o uptime = "\uf017" # fa-clock-o
volume_empty = "\uf026" # fa-volume-off volume_empty = "\uf026" # fa-volume-off
volume_full = "\uf028" # fa-volume-up volume_full = "\uf028" # fa-volume-up
volume_half = "\uf027" # fa-volume-down volume_half = "\uf027" # fa-volume-down
volume_muted = "\uf026 \uf00d" volume_muted = "\uf026 \uf00d"
microphone_empty = "\uf130" # fa-microphone microphone_empty = "\uf130" # fa-microphone
microphone_full = "\uf130" # fa-microphone microphone_full = "\uf130" # fa-microphone
microphone_half = "\uf130" # fa-microphone microphone_half = "\uf130" # fa-microphone
microphone_muted = "\uf131" # fa-microphone-slash microphone_muted = "\uf131" # fa-microphone-slash
weather_clouds = "\uf0c2" # fa-cloud weather_clouds = "\uf0c2" # fa-cloud
weather_default = "\uf0c2" # fa-cloud weather_default = "\uf0c2" # fa-cloud
weather_rain = "\uf043" # fa-tint weather_rain = "\uf043" # fa-tint
weather_snow = "\uf2dc" # fa-snowflake-o weather_snow = "\uf2dc" # fa-snowflake-o
weather_sun = "\uf185" # fa-sun-o weather_sun = "\uf185" # fa-sun-o
weather_thunder = "\uf0e7" # fa-bolt weather_thunder = "\uf0e7" # fa-bolt
xrandr = "\uf26c" # fa-television xrandr = "\uf26c" # fa-television

View File

@@ -0,0 +1 @@

View File

@@ -1,4 +1,4 @@
post_commands = [ post_commands = [
"systemctl --user restart keyboard.service", "systemctl --user restart keyboard.service",
"systemctl --user restart touchpad.service", "systemctl --user restart touchpad.service",
] ]