Compare commits

..

34 Commits

Author SHA1 Message Date
7c918c3c17 update hyprland conf; fix nvim lspconfig 2025-11-21 13:37:39 +01:00
4ae85ca347 update conf 2025-10-17 14:22:01 +02:00
653a75cc18 update hyprland conf 2025-09-16 06:38:45 +02:00
42bae035ee resolve merge-conflict 2025-09-13 17:43:18 +02:00
9c3f47615b move to 1 workspace per window conf; adapt waybar accordingly 2025-09-13 17:33:02 +02:00
a95cd6feed update hyprland conf 2025-09-13 15:28:12 +02:00
ee6855f2ce further configure hyprland 2025-09-07 20:17:11 +02:00
465634d8bf move ghostty and hyprland to dotfiles 2025-09-06 16:23:15 +02:00
14e4d4fe3e move most important config to ansible 2025-09-06 15:44:39 +02:00
7770c4b5e4 implement basic ansible config 2025-08-11 21:47:44 +02:00
e0fcb2988f pin mason v1 due to breaking changes with lazy.nvim 2025-07-28 18:05:30 +02:00
c61066eb44 pin mason v1 due to breaking changes with lazy.nvim 2025-07-28 18:04:37 +02:00
a17e29ff72 update for cachyos 2025-07-08 17:57:33 +02:00
c669943a4d add alias from rm to trash-put 2025-07-02 20:41:36 +02:00
05148ebeb5 fix fzf 2025-03-29 11:45:58 +01:00
81a9d1bf4d update .ideavimrc 2025-03-27 15:09:28 +01:00
5145f60ed5 merge dotfiles and add machine specific config 2025-03-27 14:49:33 +01:00
0899054aef update zshrc and ideavimrc 2025-03-26 16:43:51 +01:00
60853bfb37 change zsh settings 2025-02-12 13:49:22 +01:00
cbdd1820f4 add variable renaming to lsp 2025-01-24 14:32:35 +01:00
7af02df117 update nvim lock file 2025-01-13 22:20:04 +01:00
5048949d2a misc settings 2025-01-13 22:19:32 +01:00
862c6964bb update lock file 2025-01-07 15:30:45 +01:00
d9ca06e58f add venv selector 2024-12-21 23:51:06 +01:00
f7120df53b disable autoformatting of text and comments in vim 2024-12-20 11:35:56 +01:00
add0be5d00 add default pyrightconfig.json 2024-12-20 11:35:34 +01:00
4b8ae07386 fix source of aliases 2024-12-20 10:08:42 +01:00
8527fddb7a fix install script 2024-12-19 13:05:59 +01:00
c748246e38 remove unnecessary entries from .gitignore 2024-12-19 13:01:27 +01:00
ce2d779653 add install script 2024-12-19 12:58:11 +01:00
4459967bb0 add zsh 2024-12-19 12:50:20 +01:00
ba35cf07c3 update lsp configs 2024-12-19 11:22:04 +01:00
65045e99b8 Change keybindings and add better buffer handling 2024-12-05 13:19:36 +01:00
e31a8b9cf8 Adjust misc settings in plugins 2024-12-03 11:31:11 +01:00
72 changed files with 1693 additions and 258 deletions

12
.bashrc
View File

@ -1,12 +0,0 @@
alias vim='nvim'
alias brc='vim ~/.bashrc'
alias sbrc='source ~/.bashrc'
export VISUAL=nvim
export EDITOR=nvim
eval "$(starship init bash)"
alias tp='trash-put'
alias tl='trash-list'

28
.gitignore vendored
View File

@ -1,27 +1 @@
abrt/ .idea/
.gsd-keyboard.settings-ported
GNOME-xdg-terminals.list
dconf/
enchant/
evolution/
gnome-initial-setup-done
google-chrome/
gtk-3.0/
gtk-4.0/
ibus/
keepassxc/
monitors.xml
monitors.xml~
pulse/
rncbc.org/
user-dirs.dirs
user-dirs.locale
vlc/
xdg-terminals.list
autostart
btop/
discord/
obs-studio/
QtProject.conf
pavucontrol.ini
StardewValley/

19
.ideavimrc Normal file
View File

@ -0,0 +1,19 @@
" Plugins
set surround
set commentary
set highlightedyank
set which-key
set notimeout
" Default settings
set visualbell
set ignorecase
set smartcase
set incsearch
set hlsearch
set scrolloff=10
" Binds
nnoremap gr :action ShowUsages<CR>

View File

@ -1,17 +1,20 @@
## Config files # Dotfiles
### [Neovim](https://neovim.io) ## Installation
Install the vim plugin manager [vim-plug](https://github.com/junegunn/vim-plug). ```bash
pacman -S ansible-tools
Install [powerline fonts](https://github.com/powerline/fonts) for powerline statusline plugins. ansible-galaxy install -r requirements.yml
ansible-playbook playbook.yml --ask-become-pass
Install the plugins with the following command:
```
:PlugInstall
``` ```
### .bashrc - Install nerdfont -- TODO
## zsh
Machine specific settings can be added in `./zsh/hosts/` and will be sourced for via the environment variable `$MACHINE_TYPE`, export `$MACHINE_TYPE` via `/etc/zprofile` (or another local only file, e.g. ``~/.zprofile`.
```bash
> sudo echo "MACHINE_TYPE=<name>" >> /etc/zprofile
```
Added functionality to show current git branch in terminal

4
ansible.cfg Normal file
View File

@ -0,0 +1,4 @@
[default]
inventory = inventory
stdout_callback = yaml
host_key_checking = False

70
group_vars/all.yml Normal file
View File

@ -0,0 +1,70 @@
default_roles:
# === Core System Tools (Recommended) ===
- system # Essential system configurations and tools
# - fonts # Developer-friendly fonts (Nerd Fonts)
# === Development Core ===
# - git # Version control system
- nvim # Modern text editor (or use 'vim')
# - tmux # Terminal multiplexer for session management
- zsh # Modern shell with oh-my-zsh
# - ssh
- hyprland
- ghostty
temp:
- docker # Container platform
system_packages:
# Network
- curl
- wget
- rsync
- nmap
# archive/compression
- unzip
- tar
# text processing
- jq
- ripgrep
- fd
# utilities
- btop
- which
# - fzf
- bat
- eza
- tealdeer
- neofetch
# dev
- nvm
- go
- discord # Team communication
# Window manager
- hyprland
- waybar
- wofi
- hyprshot
- dunst
- hyprpaper
# desktop
- thunar
- imv
# TODO
aur_packages:
- autojump
- spotify
- qownnotes
- stripe-cli
- pgformatter-git
# - jetbrains-toolbox
config_dir: "{{ ansible_facts.env.HOME }}/.config"

38
install.sh Executable file
View File

@ -0,0 +1,38 @@
#!/bin/bash
set -e
DOTFILES_DIR="$HOME/dotfiles"
function arch_setup() {
if ! [ -x "$(which ansible)" ]; then
echo "Installing ansible"
sudo pacman -S ansible
fi
}
function detect_os() {
source /etc/os-release
echo "$ID"
}
local_os=$(detect_os)
case $local_os in
cachyos|arch)
arch_setup
;;
debian)
debian_setup
;;
fedora)
fedora_setup
;;
*)
echo "OS $local_os not supported"
exit 1
esac
ansible-playbook "$DOTFILES_DIR/playbook.yml" "$@"

2
inventory Normal file
View File

@ -0,0 +1,2 @@
[local]
localhost ansible_connection=local ansible_user=johannes

View File

@ -1,37 +0,0 @@
{
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
"alpha-nvim": { "branch": "main", "commit": "bf3c8bb8c02ed3d9644cc5bbc48e2bdc39349cd7" },
"auto-session": { "branch": "main", "commit": "9d02776ed42874d37869dc683396234e3724b52d" },
"bufferline.nvim": { "branch": "main", "commit": "2e3c8cc5a57ddd32f1edd2ffd2ccb10c09421f6c" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
"dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
"lazygit.nvim": { "branch": "main", "commit": "56760339a81cd1540d5a72fd9d93010a2677b55d" },
"lspkind.nvim": { "branch": "master", "commit": "59c3f419af48a2ffb2320cea85e44e5a95f71664" },
"lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"monokai-nightasty.nvim": { "branch": "main", "commit": "340bed332b76d59ecd999f9dda5538a53464da3a" },
"neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" },
"none-ls-extras.nvim": { "branch": "main", "commit": "f2bb002c8aa644d1f253772ff5d4e75e45ff7f4f" },
"none-ls.nvim": { "branch": "main", "commit": "dcc8cd4efdcb29275681a3c95786a816330dbca6" },
"nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" },
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
"nvim-lsp-file-operations": { "branch": "master", "commit": "92a673de7ecaa157dd230d0128def10beb56d103" },
"nvim-lspconfig": { "branch": "master", "commit": "541f3a2781de481bb84883889e4d9f0904250a56" },
"nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
"nvim-tree.lua": { "branch": "master", "commit": "f5f67892996b280ae78b1b0a2d07c4fa29ae0905" },
"nvim-treesitter": { "branch": "master", "commit": "03452942dfbd998701d4123ccad2090e1bc7e9f1" },
"nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
"nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"vim-floaterm": { "branch": "master", "commit": "4e28c8dd0271e10a5f55142fb6fe9b1599ee6160" },
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" }
}

28
playbook.yml Normal file
View File

@ -0,0 +1,28 @@
---
- name: Setup dotfiles configuration
hosts: localhost
connection: local
become: false
vars:
dotfiles_dir: "{{ ansible_env.HOME }}/dotfiles"
# roles:
# - zsh
pre_tasks:
- name: Create btrfs snapshot before changes
shell: |
sudo btrfs subvolume snapshot / /.snapshots/before-dotfiles-$(date +%Y%m%d-%H%M%S)
tags: [snapshot]
become: true
become_method: sudo
tasks:
- name: Install enabled roles
ansible.builtin.include_role:
name: "{{ item }}"
apply:
tags:
- install
loop:
"{{ default_roles }}"
# when: default_roles is defined

4
requirements.yml Normal file
View File

@ -0,0 +1,4 @@
---
collections:
- community.general
- kewlfft.aur

View File

@ -0,0 +1,32 @@
# Ctrl+Backspace -> backward-kill-word (send ESC + DEL)
# keybind = ctrl+delete=text:\x1b\x7f
shell-integration = zsh
shell-integration-features = cursor,sudo,title
font-family = "RobotoMono Nerd Font Mono"
# Monokai Pro
# Based on Monokai Pro color scheme, made by Monokai. https://monokai.pro/
window-colorspace = srgb
palette = 0=2d2a2e
palette = 1=ff6188
palette = 2=a9dc76
palette = 3=ffd866
palette = 4=fc9867
palette = 5=ab9df2
palette = 6=78dce8
palette = 7=fcfcfa
palette = 8=727072
palette = 9=ff6188
palette = 10=a9dc76
palette = 11=ffd866
palette = 12=fc9867
palette = 13=ab9df2
palette = 14=78dce8
palette = 15=fcfcfa
background = 2d2a2e
foreground = fcfcfa
cursor-color = c1c0c0
selection-background = 5b595c
selection-foreground = fcfcfa

View File

@ -0,0 +1,7 @@
---
- name: Symlink ghostty config
file:
src: "{{ role_path }}/files"
dest: "{{ config_dir }}/ghostty"
state: link
force: true

View File

@ -0,0 +1,76 @@
[global]
monitor = 0
follow = mouse
width = 300
height = 300
origin = top-right
offset = 10x50
scale = 0
notification_limit = 0
progress_bar = true
progress_bar_height = 10
progress_bar_frame_width = 1
progress_bar_min_width = 150
progress_bar_max_width = 300
indicate_hidden = yes
transparency = 0
separator_height = 2
padding = 8
horizontal_padding = 8
text_icon_padding = 0
frame_width = 2
frame_color = "#89b4fa"
separator_color = frame
sort = yes
font = JetBrains Mono 10
line_height = 0
markup = full
format = "<b>%s</b>\n%b"
alignment = left
vertical_alignment = center
show_age_threshold = 60
ellipsize = middle
ignore_newline = no
stack_duplicates = true
hide_duplicate_count = false
show_indicators = yes
icon_position = left
min_icon_size = 0
max_icon_size = 32
dmenu = /usr/bin/dmenu -p dunst:
browser = /usr/bin/xdg-open
always_run_script = true
title = Dunst
class = Dunst
corner_radius = 8
ignore_dbusclose = false
force_xwayland = false
force_xinerama = false
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
[experimental]
per_monitor_dpi = false
[urgency_low]
background = "#1e1e2e"
foreground = "#cdd6f4"
timeout = 10
[urgency_normal]
background = "#1e1e2e"
foreground = "#cdd6f4"
timeout = 10
[urgency_critical]
background = "#1e1e2e"
foreground = "#f38ba8"
frame_color = "#f38ba8"
timeout = 0

View File

@ -0,0 +1,322 @@
################
### MONITORS ###
################
# See https://wiki.hypr.land/Configuring/Monitors/
monitor=,preferred,auto,auto
source = ./monitors.conf
source = ./workspaces.conf
###################
### MY PROGRAMS ###
###################
# See https://wiki.hypr.land/Configuring/Keywords/
$terminal = ghostty
$fileManager = thunar
$menu = wofi --show drun
#################
### AUTOSTART ###
#################
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
exec-once = waybar
exec-once = hyprpanel
exec-once = dunst
exec-once = firefox
exec-once = hyprpaper
exec-once = [workspace 9 silent] spotify
# gnome keyring secret service
exec-once = dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE
#############################
### ENVIRONMENT VARIABLES ###
#############################
# See https://wiki.hypr.land/Configuring/Environment-variables/
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
env = QT_QPA_PLATFORM,waylandl;xcb
env = QT_QPA_PLATFORMTHEME,qt5ct
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
# env = QT_STYLE_OVERRIDE,kvantum
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = WLR_NO_HARDWARE_CURSORS,1
env = CLUTTER_BACKEND,wayland
env = SDL_VIDEODRIVER,wayland,x11
env = GDK_BACKEND,wayland,x11
# jetbrains
env = _JAVA_AWT_WM_NONREPARENTING, 1
# env = AWT_TOOLKIT, MToolkit
###################
### PERMISSIONS ###
###################
# See https://wiki.hypr.land/Configuring/Permissions/
# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
# for security reasons
# ecosystem {
# enforce_permissions = 1
# }
# permission = /usr/(bin|local/bin)/grim, screencopy, allow
# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
#####################
### LOOK AND FEEL ###
#####################
# https://wiki.hypr.land/Configuring/Variables/#general
general {
gaps_in = 5
gaps_out = 20
border_size = 2
# https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
# Active: cosmic purple -> neon cyan gradient
# col.active_border = rgba(7f5af0ee) rgba(00d1ffee) 45deg
#
# # Inactive: deep space slate
# col.inactive_border = rgba(0c0e14aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false
# Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on
allow_tearing = false
layout = dwindle
}
# --- Decorations / cosmic glass ---
decoration {
rounding = 12
active_opacity = 1.0
inactive_opacity = 0.96
fullscreen_opacity = 1.0
# Shadows (new nested syntax)
shadow {
enabled = true
range = 20 # size of the shadow
render_power = 3 # 14, higher = faster falloff
color = rgba(0, 0, 0, 0.35)
offset = 0 6 # optional: drop slightly downward
scale = 1.0
}
# Blur (nested)
blur {
enabled = true
size = 8
passes = 3
new_optimizations = true
noise = 0.02
contrast = 1.00
brightness = 1.00
vibrancy = 0.18
xray = true
}
}
# wofi
layerrule = blur, wofi # apply compositor blur
layerrule = ignorezero, wofi # keep blur even on near-opaque colors
layerrule = dimaround, wofi # optional: dim background behind wofi
layerrule = ignorealpha 0.90, wofi # target overall opacity for the layer
# waybar
layerrule = blur, waybar
layerrule = ignorealpha 0.15, waybar
# https://wiki.hypr.land/Configuring/Variables/#animations
animations {
enabled = yes, please :)
# Default animations, see https://wiki.hypr.land/Configuring/Animations/ for more
bezier = easeOutQuint,0.23,1,0.32,1
bezier = easeInOutCubic,0.65,0.05,0.36,1
bezier = linear,0,0,1,1
bezier = almostLinear,0.5,0.5,0.75,1.0
bezier = quick,0.15,0,0.1,1
animation = global, 1, 10, default
animation = border, 1, 5.39, easeOutQuint
animation = windows, 1, 4.79, easeOutQuint
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
animation = windowsOut, 1, 1.49, linear, popin 87%
animation = fadeIn, 1, 1.73, almostLinear
animation = fadeOut, 1, 1.46, almostLinear
animation = fade, 1, 3.03, quick
animation = layers, 1, 3.81, easeOutQuint
animation = layersIn, 1, 4, easeOutQuint, fade
animation = layersOut, 1, 1.5, linear, fade
animation = fadeLayersIn, 1, 1.79, almostLinear
animation = fadeLayersOut, 1, 1.39, almostLinear
animation = workspaces, 1, 1.94, almostLinear, fade
animation = workspacesIn, 1, 1.21, almostLinear, fade
animation = workspacesOut, 1, 1.94, almostLinear, fade
}
# Ref https://wiki.hypr.land/Configuring/Workspace-Rules/
# "Smart gaps" / "No gaps when only"
# uncomment all if you wish to use that.
# workspace = w[tv1], gapsout:0, gapsin:0
# workspace = f[1], gapsout:0, gapsin:0
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
# windowrule = rounding 0, floating:0, onworkspace:f[1]
# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # You probably want this
}
# See https://wiki.hypr.land/Configuring/Master-Layout/ for more
master {
new_status = master
}
# https://wiki.hypr.land/Configuring/Variables/#misc
misc {
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
middle_click_paste = false
}
#############
### INPUT ###
#############
# https://wiki.hypr.land/Configuring/Variables/#input
input {
kb_layout = us
kb_variant = altgr-intl
kb_model =
kb_options =
kb_rules =
follow_mouse = 2
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
scroll_method = on_button_down
scroll_button = 274
}
# Example per-device config
# See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more
device {
name = benq-zowie-benq-zowie-gaming-mouse
sensitivity = 0
}
###################
### KEYBINDINGS ###
###################
# See https://wiki.hypr.land/Configuring/Keywords/
$mainMod = SUPER # Sets "Super" key as main modifier
bind = $mainMod, T, exec, $terminal
bind = $mainMod, Q, killactive,
bind = $mainMod, N, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, Space, exec, $menu
bind = $mainMod, G, togglesplit, # dwindle
bind = $mainMod, F, fullscreen, 1
bind = $mainMod SHIFT, F, fullscreen, 0
bind = $mainMod, B, exec, firefox
bind = $mainMod, M, exec, thunderbird
bind = $mainMod, L, exec, hyprlock
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
bind = $mainMod SHIFT, left, movewindow, l
bind = $mainMod SHIFT, right, movewindow, r
bind = $mainMod SHIFT, up, movewindow, u
bind = $mainMod SHIFT, down, movewindow, d
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Laptop multimedia keys for volume and LCD brightness
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
# Requires playerctl
# Spotify controls
bind = CTRL ALT, K, exec, playerctl --player=spotify play-pause
bind = CTRL ALT, Left, exec, playerctl --player=spotify previous
bind = CTRL ALT, Right, exec, playerctl --player=spotify next
bind = CTRL ALT, Up, exec, playerctl --player=spotify volume 0.05+
bind = CTRL ALT, Down, exec, playerctl --player=spotify volume 0.05-
bind = ,F7,pass,class:^(discord)$
bind = ,F8,pass,class:^(discord)$
# Printscreen
# Screenshot a selected region (interactive)
# bind = , Print, exec, hyprshot -m region
bind = , Print, exec, hyprshot -zm region
##############################
### WINDOWRULES ###
##############################
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
# Ignore maximize requests from apps. You'll probably like this.
windowrule = suppressevent maximize, class:.*
# Fix some dragging issues with XWayland
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
windowrulev2 = tag +jb, class:^jetbrains-.+$,floating:1
windowrulev2 = stayfocused, tag:jb
windowrulev2 = noinitialfocus, tag:jb
# 1) Do not allow these windows to inhibit Hyprland shortcuts
windowrulev2 = noshortcutsinhibit, class:^(jetbrains-.*|android-studio)$
# 2) Float and center transient dialogs from these apps
windowrulev2 = float, class:^(jetbrains-.*|android-studio)$, windowtype:^(dialog|utility|popup)$
windowrulev2 = center, class:^(jetbrains-.*|android-studio)$, windowtype:^(dialog|utility|popup)$

View File

@ -0,0 +1,37 @@
general {
disable_loading_bar = true
grace = 2
hide_cursor = true
no_fade_in = false
}
background {
monitor =
path = screenshot
blur_passes = 3
blur_size = 8
}
input-field {
monitor =
size = 300, 50
position = 0, -80
dots_center = true
fade_on_empty = false
font_color = rgb(202, 211, 245)
inner_color = rgb(91, 96, 120)
outer_color = rgb(24, 25, 38)
outline_thickness = 5
placeholder_text = <span foreground="##cad3f5">Password...</span>
shadow_passes = 2
}
label {
monitor =
text = Hi there, $USER
font_size = 20
font_family = RobotoMono Nerd Font Mono
position = 0, 160
halign = center
valign = center
}

View File

@ -0,0 +1,7 @@
preload = /home/johannes/Pictures/Wallpapers/wallhaven-5g22q5.png
wallpaper = DP-1,/home/johannes/Pictures/Wallpapers/wallhaven-5g22q5.png
wallpaper = DP-2,/home/johannes/Pictures/Wallpapers/wallhaven-5g22q5.png
wallpaper = HDMI-A-2,/home/johannes/Pictures/Wallpapers/wallhaven-5g22q5.png
splash = false

View File

@ -0,0 +1,8 @@
# Generated by nwg-displays on 2025-11-09 at 17:18:32. Do not edit manually.
monitor=DP-1,2560x1440@165.0,6626x876,1.0
monitor=DP-2,2560x1440@165.0,4066x876,1.0
monitor=HDMI-A-2,1920x1080@60.0,9186x396,1.0
monitor=HDMI-A-2,transform,3
monitor=HDMI-A-1,3840x2160@60.0,226x156,1.0
monitor=HDMI-A-1,disable

View File

@ -0,0 +1,34 @@
$mainMod = SUPER # Sets "Super" key as main modifier
workspace = 1, monitor:DP-1, persistent:true, default:true
workspace = 2, monitor:DP-1, persistent:true
workspace = 3, monitor:DP-1, persistent:true
workspace = 4, monitor:DP-2, persistent:true, default:true
workspace = 5, monitor:DP-2, persistent:true
workspace = 6, monitor:DP-2, persistent:true
workspace = 7, monitor:HDMI-A-2, persistent:true
workspace = 8, monitor:HDMI-A-2, persistent:true
workspace = 9, monitor:HDMI-A-2, persistent:true, default:true
workspace = 10, monitor:HDMI-A-1, persistent:true, default:true
bind = $mainMod, 1, exec, hyprctl --batch "dispatch focusmonitor DP-1; dispatch workspace 1;"
bind = $mainMod, 2, exec, hyprctl --batch "dispatch focusmonitor DP-1; dispatch workspace 2;"
bind = $mainMod, 3, exec, hyprctl --batch "dispatch focusmonitor DP-1; dispatch workspace 3;"
bind = $mainMod, 4, exec, hyprctl --batch "dispatch focusmonitor DP-2; dispatch workspace 4;"
bind = $mainMod, 5, exec, hyprctl --batch "dispatch focusmonitor DP-2; dispatch workspace 5;"
bind = $mainMod, 6, exec, hyprctl --batch "dispatch focusmonitor DP-2; dispatch workspace 6;"
bind = $mainMod, 7, exec, hyprctl --batch "dispatch focusmonitor HDMI-A-2; dispatch workspace 7;"
bind = $mainMod, 8, exec, hyprctl --batch "dispatch focusmonitor HDMI-A-2; dispatch workspace 8;"
bind = $mainMod, 9, exec, hyprctl --batch "dispatch focusmonitor HDMI-A-2; dispatch workspace 9;"
bind = $mainMod, 0, exec, hyprctl --batch "dispatch focusmonitor HDMI-A-1; dispatch workspace 10;"
bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10

View File

@ -0,0 +1,156 @@
{
"layer": "top",
"position": "top",
"exclusive": true, // keep the gap reserved
"margin-top": 8, // gap from the top edge
"margin-left": 10, // gap from the left edge
"margin-right": 10, // gap from the right edge
"margin-bottom": 0,
"modules-left": ["hyprland/workspaces"],
"modules-center": ["wlr/taskbar"],
"modules-right": [ "tray", "custom/separator", "network", "bluetooth", "custom/separator", "disk", "cpu", "memory", "pulseaudio", "custom/separator", "clock"],
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"warp-on-scroll": false,
"format": "{icon}{windows}",
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"10": "0"
},
"window-rewrite-default": " 󱃶",
"format-window-separator": "",
"window-rewrite": {
"class<firefox>": " ",
"class<com.mitchellh.ghostty>": " ",
"class<com.mitchellh.ghostty> title<vim.*>": " ",
"class<Spotify>": " ",
"class<QOwnNotes>": " ",
"class<thunderbird>": " ",
"class<thunar>": " ",
"class<jetbrains-webstorm>": " ",
"class<jetbrains-pycharm>": " ",
"class<steam>": " ",
"class<discord>": " "
// "": "",
// "": "",
// "": "",
// "": "",
// "": "",
// "": "",
// "": "",
// "": ""
},
"persistent-workspaces": {
"1": [],
"2": [],
"3": [],
"4": [],
"5": [],
"6": [],
"7": [],
"8": [],
"9": [],
"10": []
}
},
// "hyprland/window": { "format": "{title}", "max-length": 60 },
"wlr/taskbar": {
"format": "{icon}",
"icon-theme": "Ars-Dark-Icons",
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close"
},
"tray": { "icon-size": 16, "spacing": 10 },
"pulseaudio": {
// ——— behaviour ———
"scroll-step": 5, // ± 5 % per wheel-step
"max-volume": 150, // allow 0 150 %
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol",
// ——— appearance ———
"markup": "pango", // enable coloured markup
"format": "<span color='#e5c07b'>{icon} </span> <span color='#ffffff'>{volume}%</span>",
"format-muted": "<span color='#e5c07b'> </span> muted",
// choose the glyphs you like (Nerd Font / Font Awesome)
"format-icons": {
"default": "", // speaker
"muted": "", // muted speaker
"headphones": ""
}
},
"custom/separator": {
// emit a JSON object with field "text"
"exec": "echo '{\"text\":\"|\"}'",
// treat stdout as JSON
"return-type": "json",
// wrap the text in a colored Pango span
"format": "<span color='#555'>{text}</span>",
"markup": "pango",
// refresh only hourly
"interval": 3600
},
"cpu": {
"interval": 1, // update every second
"markup": "pango",
"format": "<span color='#E06C75'> </span> {usage}%"
},
"memory": {
"interval": 2, // fast enough, still light
"markup": "pango",
"format": "<span color='#98C379'> </span> {percentage}%"
},
"disk": {
"interval": 30, // disks change slowly
"path": "/",
"markup": "pango",
"format": "<span color='#C678DD'>󰋊 </span> {percentage_used}%"
},
/* CLOCK (add date) */
"clock": {
"interval": 1,
"format": "{:%Y-%m-%d %H:%M:%S}",
"format-alt": "{:%Y-%m-%d %H:%M}"
},
/* NETWORK */
"network": {
"interface": ["enp.*", "eth.*"], // wired NICs (regex—adjust if needed)
"interval": 3,
"markup": "pango",
"format-ethernet": "<span color='#61AFEF'>󰈀 </span> up",
"format-wifi": "<span color='#61AFEF'> </span> {essid}",
// "format-linked": "<span color='#61AFEF'></span> link",
"format-unknown": "<span color='#61AFEF'>󰈂 </span> up",
"format-disconnected":"<span color='#E06C75'> </span> down",
"on-click": "nm-connection-editor"
},
}

View File

@ -0,0 +1,40 @@
#!/bin/bash
current=$(hyprctl activeworkspace -j | jq -r '.id')
if [ "$1" = "click" ]; then
group=$2
start=$(( (group - 1) * 3 + 1 ))
hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace $start; \
dispatch focusmonitor DP-2; dispatch workspace $((start+1)); \
dispatch focusmonitor HDMI-A-2; dispatch workspace $((start+2)); \
dispatch focusmonitor DP-1"
else
# Display button state
group=$1
start=$(( (group - 1) * 3 + 1 ))
end=$(( start + 2 ))
case $group in
1) range="1-3"; icon="" ;;
2) range="4-6"; icon="" ;;
3) range="7-9"; icon="" ;;
4) range="10-12"; icon="" ;;
5) range="13-15"; icon="" ;;
6) range="16-18"; icon="" ;;
7) range="19-21"; icon="" ;;
8) range="22-24"; icon="" ;;
9) range="25-27"; icon="󰝚" ;;
10) range="28-30"; icon="" ;;
esac
if [ $current -ge $start ] && [ $current -le $end ]; then
# Active group - return with active class
echo "{\"text\": \"$icon\", \"class\": \"active\"}"
else
# Inactive group
echo "{\"text\": \"$icon\", \"class\": \"inactive\"}"
fi
fi

View File

@ -0,0 +1,100 @@
/* Palette */
@define-color glass rgba(12, 14, 20, 0.34);
@define-color glass_strong rgba(12, 14, 20, 0.46);
@define-color fg #DDE1EA;
@define-color fg_dim #B8BECC;
@define-color accent1 #7F5AF0;
@define-color accent2 #00D1FF;
@define-color occupied #a8557f;
/* Whole bar: more vertical padding, no border, stronger shadow */
window#waybar {
background: @glass;
color: @fg;
border-radius: 12px;
/* margin: 6px 8px; */
border: none; /* ← removed border */
box-shadow: 0 10px 34px rgba(0,0,0,0.34);
-gtk-outline-radius: 12px;
}
* {
border: none;
padding: 2px 6px;
margin-top: 0;
font-family: "RobotoMono Nerd Font", "Roboto Mono Nerd Font", "RobotoMono NF", monospace;
font-size: 14px;
font-weight: 500;
}
/* Keep groups transparent */
#modules-left, #modules-center, #modules-right { background: transparent; }
/* Common modules stay transparent; compact rounded hit area */
#tray, #window, #clock, #cpu, #memory, #disk, #network, #bluetooth, #pulseaudio {
background: transparent;
border-radius: 8px;
color: @fg;
}
/* Subtle separators */
#custom-separator {
color: rgba(200,200,200,0.20);
padding: 0 4px;
}
/* Tray tweaks */
#tray { margin-right: 0px; }
#tray * { padding-left: 0px; padding-right: 0px; }
/* Tray menu glass look (also lighter, no border) */
#tray menu {
padding: 6px 0;
margin: 0;
background: @glass_strong;
border-radius: 10px;
border: none;
box-shadow: 0 10px 34px rgba(0,0,0,0.38);
}
#tray menu menuitem { padding: 6px 12px; }
#tray menu menuitem:hover { background: alpha(@accent1, 0.16); }
#workspaces button {
padding: 0 2px;
background-color: transparent;
color: #6c7086;
border-radius: 3px;
margin: 2px;
transition: all 0.2s ease-in-out;
}
/* Hover effect */
#workspaces button:hover {
background-color: #74c7ec;
color: #1e1e2e;
}
#workspaces button:not(.active):not(.empty) {
color: #cdd6f4;
background-color: #585b70;
}
/* Active/focused workspace */
#workspaces button.active {
color: #1e1e2e;
background-color: @occupied;
font-weight: bold;
}
#workspaces button.visible {
color: #f9e2af;
/* background-color: #45475a; */
border: 1px solid #f9e2af;
}
/* Default state for persistent workspaces */
#workspaces button {
color: #6c7086;
background-color: @glass;
}

View File

@ -0,0 +1,13 @@
[config]
allow_images=true
width=500
show=drun
prompt=Search
height=400
term=ghostty
hide_scroll=true
print_command=true
insensitive=true
columns=1
pre_display_exec=true
no_actions=true

View File

@ -0,0 +1,91 @@
* {
/* smoother corners everywhere */
border-radius: 12px;
font-weight: 450;
}
/* Window container */
window {
margin: 0px;
padding: 6px;
border: 1px solid rgba(127, 90, 240, 0.35); /* accent tint */
background-color: rgba(12, 14, 20, 0.55); /* translucent */
color: #E6E7EB;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
backg
}
/* Input field */
#input {
margin: 8px;
padding: 10px 12px;
border: 1px solid rgba(127, 90, 240, 0.25);
background-color: rgba(34, 38, 48, 0.70);
color: #E6E7EB;
outline: none;
}
/* Lists/boxes */
#outer-box, #inner-box {
margin: 6px;
border: none;
background-color: rgba(24, 28, 36, 0.60);
}
#scroll {
margin: 0px;
border: none;
}
/* Entry text */
#text, #entry > * {
margin: 6px 10px;
color: #E6E7EB;
}
/* Rows (entries) */
#entry {
margin: 4px 6px;
padding: 8px 6px;
border: 1px solid transparent;
background-color: transparent;
transition: background-color 120ms ease, border-color 120ms ease;
}
/* Hover — soft highlight */
#entry:hover {
background-color: rgba(127, 90, 240, 0.10);
border-color: rgba(127, 90, 240, 0.25);
}
/* Selected row — stronger surface and bold text */
#entry:selected {
background-color: rgba(127, 90, 240, 0.18);
border-color: rgba(127, 90, 240, 0.40);
}
#entry:selected #text {
font-weight: 600;
}
/* Activatable (e.g., currently typed match) — invert text for contrast */
#entry.activatable #text {
color: rgba(12, 14, 20, 0.92);
}
/* Muted secondary text, if present */
#entry .secondary, #entry .desc {
color: #AAB0BC;
}
/* Optional: focus ring for keyboard nav */
#entry:focus {
border-color: rgba(127, 90, 240, 0.55);
background-color: rgba(127, 90, 240, 0.12);
}
/* Optional: thin separators using subtle overlay lines */
separator, .separator {
background-color: rgba(255, 255, 255, 0.06);
min-height: 1px;
}

View File

@ -0,0 +1,29 @@
---
- name: Symlink hyprland
file:
src: "{{ role_path }}/files/hypr"
dest: "{{ config_dir }}/hypr"
state: link
force: true
- name: Symlink dunst
file:
src: "{{ role_path }}/files/dunst"
dest: "{{ config_dir }}/dunst"
state: link
force: true
- name: Symlink wofi
file:
src: "{{ role_path }}/files/wofi"
dest: "{{ config_dir }}/wofi"
state: link
force: true
- name: Symlink waybar
file:
src: "{{ role_path }}/files/waybar"
dest: "{{ config_dir }}/waybar"
state: link
force: true

View File

@ -0,0 +1 @@
vim.opt_local.shiftwidth = 4

View File

@ -0,0 +1,41 @@
{
"LuaSnip": { "branch": "master", "commit": "458560534a73f7f8d7a11a146c801db00b081df0" },
"alpha-nvim": { "branch": "main", "commit": "3979b01cb05734331c7873049001d3f2bb8477f4" },
"auto-session": { "branch": "main", "commit": "4cd20bb5c0138d1ce00ab35f8d7ac0f4fb4a403a" },
"bufdelete.nvim": { "branch": "master", "commit": "f6bcea78afb3060b198125256f897040538bcb81" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
"cmp-nvim-lsp": { "branch": "main", "commit": "bd5a7d6db125d4654b50eeae9f5217f24bb22fd3" },
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
"flutter-tools.nvim": { "branch": "main", "commit": "69db9cdac65ce536e20a8fc9a83002f007cc049c" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"lazygit.nvim": { "branch": "main", "commit": "2305deed25bc61b866d5d39189e9105a45cf1cfb" },
"lspkind.nvim": { "branch": "master", "commit": "3ddd1b4edefa425fda5a9f95a4f25578727c0bb3" },
"lualine.nvim": { "branch": "master", "commit": "3946f0122255bc377d14a59b27b609fb3ab25768" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
"mason.nvim": { "branch": "main", "commit": "4da89f3ab04783da990f9bd40aaa36c22e59375b" },
"monokai-nightasty.nvim": { "branch": "main", "commit": "91b0798334534394d77b0b6e6089fe0655b241b3" },
"neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" },
"none-ls-extras.nvim": { "branch": "main", "commit": "402c6b5c29f0ab57fac924b863709f37f55dc298" },
"none-ls.nvim": { "branch": "main", "commit": "a96172f673f720cd4f3572e1fcd08400ed3eb25d" },
"nvim-autopairs": { "branch": "master", "commit": "7a2c97cccd60abc559344042fefb1d5a85b3e33b" },
"nvim-cmp": { "branch": "main", "commit": "a7bcf1d88069fc67c9ace8a62ba480b8fe879025" },
"nvim-lsp-file-operations": { "branch": "master", "commit": "9744b738183a5adca0f916527922078a965515ed" },
"nvim-lspconfig": { "branch": "master", "commit": "87d30189b24caa496b54affd65594a309ac6d929" },
"nvim-surround": { "branch": "main", "commit": "fcfa7e02323d57bfacc3a141f8a74498e1522064" },
"nvim-tree.lua": { "branch": "master", "commit": "64e2192f5250796aa4a7f33c6ad888515af50640" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
"nvim-web-devicons": { "branch": "master", "commit": "8dcb311b0c92d460fac00eac706abd43d94d68af" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"todo-comments.nvim": { "branch": "main", "commit": "411503d3bedeff88484de572f2509c248e499b38" },
"venv-selector.nvim": { "branch": "regexp", "commit": "d2326e7433fdeb10f7d0d1237c18b91b353f9f8b" },
"vim-floaterm": { "branch": "master", "commit": "a720490bd9dc02c5492e800aa08d4802f22b01f8" },
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
}

View File

@ -6,7 +6,7 @@ local opts = { noremap = true, silent = true }
-- INSERT MODE -- INSERT MODE
-- map `ctrl + backspace` to delete previous word in insert mode -- map `ctrl + backspace` to delete previous word in insert mode
keymap.set('i', '<C-H>', '<C-W>', opts) keymap.set('i', '<C-BS>', '<C-W>', opts)
-- map `ctrl + delete` to delete next word in insert mode -- map `ctrl + delete` to delete next word in insert mode
keymap.set('i', '<C-Del>', '<C-o>dw', opts) keymap.set('i', '<C-Del>', '<C-o>dw', opts)
@ -20,7 +20,6 @@ keymap.set('n', 'j', 'gj', opts)
keymap.set('n', '<UP>', 'gk', opts) keymap.set('n', '<UP>', 'gk', opts)
keymap.set('n', '<DOWN>', 'gj', opts) keymap.set('n', '<DOWN>', 'gj', opts)
-- COMMANDS -- COMMANDS
-- print current working directory -- print current working directory

View File

@ -36,3 +36,9 @@ opt.showbreak = '++'
opt.breakindent = true opt.breakindent = true
opt.linebreak = true opt.linebreak = true
opt.termguicolors = true opt.termguicolors = true
-- Remove autoformatting of
-- 't' text using textwidth
-- 'c' comments using textwidth
opt.formatoptions:remove('t')
opt.formatoptions:remove('c')

View File

@ -19,7 +19,9 @@ return {
-- If NvimTree was opened when the session was saved, show it -- If NvimTree was opened when the session was saved, show it
if buf_exists('NvimTree_') then if buf_exists('NvimTree_') then
require('nvim-tree.api').tree.open() local nvim_tree_api = require('nvim-tree.api')
nvim_tree_api.tree.reload()
nvim_tree_api.tree.open()
end end
end end
} }

View File

@ -0,0 +1,6 @@
return {
'famiu/bufdelete.nvim',
config = function()
vim.keymap.set('n', '<C-q>', '<cmd>Bdelete<cr>', { noremap = true, silent = true })
end
}

View File

@ -7,11 +7,20 @@ return {
local bufferline = require('bufferline') local bufferline = require('bufferline')
bufferline.setup({ bufferline.setup({
options = { options = {
persist_buffer_sort = true,
hover = { hover = {
enabled = true, enabled = true,
delay = 200, delay = 200,
reveal = {'close'} reveal = {'close'}
}, },
offsets = {
{
filetype = "NvimTree",
text = "File Explorer",
highlight = "Directory",
separator = true,
}
}
} }
}) })

View File

@ -3,8 +3,8 @@ return {
config = function () config = function ()
local keymap = vim.keymap local keymap = vim.keymap
local opts = { noremap = true, silent = true } local opts = { noremap = true, silent = true }
keymap.set('n', '<C-q>', '<cmd>FloatermToggle<cr>', opts) keymap.set('n', '<C-a>', '<cmd>FloatermToggle<cr>', opts)
keymap.set('t', '<C-q>', '<cmd>FloatermToggle<cr>', opts) keymap.set('t', '<C-a>', '<cmd>FloatermToggle<cr>', opts)
keymap.set('t', '<PageUp>', '<cmd>FloatermPrev<cr>', opts) keymap.set('t', '<PageUp>', '<cmd>FloatermPrev<cr>', opts)
keymap.set('t', '<PageDown>', '<cmd>FloatermNext<cr>', opts) keymap.set('t', '<PageDown>', '<cmd>FloatermNext<cr>', opts)

View File

@ -0,0 +1,9 @@
return {
'nvim-flutter/flutter-tools.nvim',
lazy = false,
dependencies = {
'nvim-lua/plenary.nvim',
'stevearc/dressing.nvim', -- optional for vim.ui.select
},
config = true,
}

View File

@ -8,7 +8,7 @@ return {
{ 'folke/neodev.nvim', opts = {} }, { 'folke/neodev.nvim', opts = {} },
}, },
config = function() config = function()
local lspconfig = require('lspconfig') local lspconfig = vim.lsp
local mason_lspconfig = require('mason-lspconfig') local mason_lspconfig = require('mason-lspconfig')
local cmp_nvim_lsp = require('cmp_nvim_lsp') local cmp_nvim_lsp = require('cmp_nvim_lsp')
local keymap = vim.keymap local keymap = vim.keymap
@ -21,12 +21,14 @@ return {
return { desc = desc, buffer = ev.buf, silent = true } return { desc = desc, buffer = ev.buf, silent = true }
end end
keymap.set('n', 'gr', vim.lsp.buf.rename, opts('Rename'))
keymap.set('n', 'K', vim.lsp.buf.hover, opts('Show documentation')) keymap.set('n', 'K', vim.lsp.buf.hover, opts('Show documentation'))
keymap.set('n', 'gR', '<cmd>Telescope lsp_references<cr>', opts('Show LSP references')) keymap.set('n', 'gR', '<cmd>Telescope lsp_references<cr>', opts('Show LSP references'))
keymap.set('n', 'gD', vim.lsp.buf.declaration, opts('Go to declaration')) keymap.set('n', 'gD', vim.lsp.buf.declaration, opts('Go to declaration'))
keymap.set('n', 'gd', '<cmd>Telescope lsp_definitions<cr>', opts('Show LSP definitions')) keymap.set('n', 'gd', '<cmd>Telescope lsp_definitions<cr>', opts('Show LSP definitions'))
keymap.set('n', 'gi', '<cmd>Telescope lsp_implementations<cr>', opts('Show LSP implementations')) keymap.set('n', 'gi', '<cmd>Telescope lsp_implementations<cr>', opts('Show LSP implementations'))
keymap.set('n', 'gt', '<cmd>Telescope lsp_type_definitions<cr>', opts('Show LSP type definitions')) keymap.set('n', 'gt', '<cmd>Telescope lsp_type_definitions<cr>', opts('Show LSP type definitions'))
keymap.set('n', 'gE', vim.diagnostic.open_float, opts('Show diagnostics'))
keymap.set({ 'n', 'v' }, 'ga', vim.lsp.buf.code_action, opts('Show available code actions')) keymap.set({ 'n', 'v' }, 'ga', vim.lsp.buf.code_action, opts('Show available code actions'))
wk.add({ wk.add({
{ '<leader>r', group = 'Rename' }, { '<leader>r', group = 'Rename' },
@ -39,13 +41,13 @@ return {
mason_lspconfig.setup_handlers({ mason_lspconfig.setup_handlers({
-- default handler for installed servers -- default handler for installed servers
function(server_name) function(server_name)
lspconfig[server_name].setup({ lspconfig.enable(server_name, {
capabilities = capabilities, capabilities = capabilities,
}) })
end, end,
-- TODO add lsp configs -- TODO add lsp configs
['lua_ls'] = function() ['lua_ls'] = function()
lspconfig['lua_ls'].setup({ lspconfig.enable('lua_ls', {
capabilities = capabilities, capabilities = capabilities,
settings = { settings = {
Lua = { Lua = {
@ -61,7 +63,7 @@ return {
end, end,
['emmet_ls'] = function() ['emmet_ls'] = function()
-- capabilities.textDocument.completion.completionItem.snippetSupport = true -- capabilities.textDocument.completion.completionItem.snippetSupport = true
lspconfig['emmet_ls'].setup({ lspconfig.enable('emmet_ls', {
capabilities = capabilities, capabilities = capabilities,
filetypes = { filetypes = {
'html', 'html',
@ -71,11 +73,53 @@ return {
'less', 'less',
'javascript', 'javascript',
'javascriptreact', 'javascriptreact',
'typescript',
'typescriptreact',
'svelte', 'svelte',
'vue', 'vue',
} }
}) })
end, end,
['ts_ls'] = function()
lspconfig.enable('ts_ls', {
capabilities = capabilities,
cmd = { "typescript-language-server", "--stdio" },
init_options = {
hostInfo = "neovim",
-- preferences = {
-- includePackagesJsonAutoImports = "on",
-- }
}
})
end,
-- ['pyright'] = function()
-- lspconfig['pyright'].setup({
-- -- cmd = { "pyright-langserver", "--stdio" },
-- -- filetypes = { "python" },
-- -- root_dir = function(filename)
-- -- return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename)
-- -- end,
-- -- settings = {
-- -- python = {
-- -- analysis = {
-- -- autoSearchPaths = true,
-- -- diagnosticMode = "workspace",
-- -- useLibraryCodeForTypes = true
-- -- }
-- -- }
-- -- }
-- capabilities = capabilities,
-- settings = {
-- python = {
-- analysis = {
-- useLibraryCodeForTypes = true,
-- typeCheckingMode = "basic",
-- -- configPath = vim.fn.expand('./pyrightconfig.json')
-- }
-- }
-- },
-- })
-- end,
}) })
end end
} }

View File

@ -1,9 +1,7 @@
return { return {
'williamboman/mason.nvim', { 'williamboman/mason.nvim', commit = '4da89f3' },
dependencies = { { 'williamboman/mason-lspconfig.nvim', commit = '1a31f82' },
'williamboman/mason-lspconfig.nvim', { 'WhoIsSethDaniel/mason-tool-installer.nvim' },
'WhoIsSethDaniel/mason-tool-installer.nvim',
},
config = function() config = function()
local mason = require('mason') local mason = require('mason')
local mason_lspconfig = require('mason-lspconfig') local mason_lspconfig = require('mason-lspconfig')
@ -27,9 +25,10 @@ return {
'lua_ls', 'lua_ls',
'html', 'html',
'cssls', 'cssls',
'pyright', -- 'pyright',
'emmet_ls', -- 'emmet_ls',
'bashls', 'bashls',
'ts_ls',
}, },
}) })
@ -37,9 +36,9 @@ return {
ensure_installed = { ensure_installed = {
'prettier', 'prettier',
'isort', 'isort',
'black', -- 'black',
'pylint', -- 'pylint',
'eslint_d', -- 'eslint_d',
} }
}) })
end, end,

View File

@ -8,13 +8,13 @@ return {
local sources = { local sources = {
null_ls.builtins.formatting.prettier.with({ null_ls.builtins.formatting.prettier.with({
filetypes = { 'javascript', 'typescript', 'css', 'html', 'json', 'markdown', 'yaml' } filetypes = { 'javascript', 'typescript', 'typescriptreact', 'css', 'html', 'json', 'markdown', 'yaml' }
}), }),
null_ls.builtins.formatting.black, -- null_ls.builtins.formatting.black,
null_ls.builtins.formatting.djlint, -- null_ls.builtins.formatting.djlint,
null_ls.builtins.formatting.isort, null_ls.builtins.formatting.isort,
null_ls.builtins.formatting.stylua, null_ls.builtins.formatting.stylua,
require('none-ls.diagnostics.eslint_d'), -- require('none-ls.diagnostics.eslint_d'),
} }
null_ls.setup({ null_ls.setup({

View File

@ -10,15 +10,26 @@ return {
vim.g.loaded_netrw = 1 vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1 vim.g.loaded_netrwPlugin = 1
nvim_tree.setup() nvim_tree.setup({
filters = {
custom = { 'node_modules', '__pycache__' },
exclude = { 'secrets' },
},
update_focused_file = {
enable = true,
update_cwd = true,
}
})
local keymap = vim.keymap local keymap = vim.keymap
keymap.set('n', '<leader>ee', api.tree.toggle, { noremap = true, silent = true }) keymap.set('n', '<leader>ee', api.tree.toggle, { noremap = true, silent = true })
keymap.set('n', '<leader>ec', '<cmd>NvimTreeCD<cr>', { noremap = true, silent = true })
local wk = require('which-key') local wk = require('which-key')
wk.add({ wk.add({
{ '<leader>e', group = 'nvim-tree', icon = { icon = '', color = 'orange' } }, { '<leader>e', group = 'nvim-tree', icon = { icon = '', color = 'orange' } },
{ '<leader>ee', group = 'Toggle tree' } { '<leader>ee', group = 'Toggle tree' },
{ '<leader>ec', group = 'Change tree root to CWD' }
}) })
end end
} }

View File

@ -0,0 +1,22 @@
return {
'folke/todo-comments.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
lazy = false,
config = function()
require("todo-comments").setup({
-- keywords = {
-- TODO = { icon = " ", color = "custom" },
-- },
-- colors = {
-- custom = { fg = "#FF0000", bg = "#000000" },
-- },
highlight = {
pattern = [[.*<(KEYWORDS)\s*]],
},
search = {
pattern = [[\b(KEYWORDS)\b]],
}
})
end
}

12
roles/nvim/tasks/main.yml Normal file
View File

@ -0,0 +1,12 @@
---
- name: Install neovim
package:
name: neovim
state: present
- name: Symlink neovim
file:
src: "{{ role_path }}/files"
dest: "{{ config_dir }}/nvim"
state: link
force: true

View File

@ -0,0 +1,20 @@
---
- name: Update package cache (Arch-based systems)
pacman:
update_cache: yes
when: ansible_os_family == "Archlinux"
become: yes
- name: Install system packages
package:
name: "{{ system_packages }}"
state: present
become: yes
- name: Ensure .config directory exists
file:
path: "{{ config_dir }}"
state: directory
mode: '0755'
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"

52
roles/zsh/files/.zshrc Normal file
View File

@ -0,0 +1,52 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
# Path to your Oh My Zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="bira"
zstyle ':omz:update' mode reminder # just remind me to update when it's time
COMPLETION_WAITING_DOTS="true"
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
fzf-zsh-plugin
)
source $ZSH/oh-my-zsh.sh
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='nvim'
fi
export DOTFILES_ZSH_DIR="$HOME/dotfiles/roles/zsh/files"
for zsh_file in "$DOTFILES_ZSH_DIR"/*.zsh; do
[[ -r "$zsh_file" ]] && source "$zsh_file"
done
# TODO source all files with .zsh suffix
# source ./aliases.zsh
# source ./dev_env.zsh
# source ./tools.zsh
# TODO
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
if [[ -n "$MACHINE_TYPE" && -f "$HOME/dotfiles/zsh/hosts/$MACHINE_TYPE.zsh" ]]; then
source "$HOME/dotfiles/zsh/hosts/$MACHINE_TYPE.zsh"
fi
alias drun='docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined'
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"

View File

@ -0,0 +1,20 @@
alias vim='nvim'
alias tp='trash-put'
alias tl='trash-list'
alias szrc='source ~/.zshrc'
alias zrc="vim ~/.zshrc"
alias dotf='vim ~/dotfiles/'
# TODO relative path
alias hyprconf='vim ~/dotfiles/roles/hyprland/files/hypr/hyprland.conf'
alias ls='eza'
rm() {
print " Consider using trash-put instead of rm"
print "➡️ Running: trash-put $*"
print "⚠️ To use real rm, use /bin/rm"
trash-put "$@"
}

View File

@ -0,0 +1,8 @@
# export DJANGO_SETTINGS_MODULE=config.settings.dev
export DATABASE_HOST=127.0.0.1
export DATABASE_NAME=cerenim
export DATABASE_USER=brainhero
export DATABASE_PORT=5432
export DATABASE_DJANGO_SCHEMA=django
export SECRET_KEY=abasdjkasd
export DATABASE_PASSWORD=abcdefghijk

View File

@ -0,0 +1,7 @@
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
export ANDROID_HOME=/home/johannes/Android/Sdk
export PATH=$HOME/.local/bin:$PATH
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools

View File

@ -0,0 +1 @@
. "$HOME/.local/bin/env"

View File

@ -0,0 +1 @@
source /usr/share/autojump/autojump.zsh

24
roles/zsh/tasks/main.yaml Normal file
View File

@ -0,0 +1,24 @@
---
- name: Install zsh
package:
name: zsh
state: present
- name: Install oh-my-zsh
shell: |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" --unattended
args:
creates: "{{ ansible_env.HOME }}/.oh-my-zsh"
- name: Check for custom zshrc
stat:
path: "{{ role_path }}/files/.zshrc"
register: custom_zshrc
- name: Symlink custom zshrc
file:
src: "{{ role_path }}/files/.zshrc"
dest: "{{ ansible_env.HOME }}/.zshrc"
state: link
force: yes
when: custom_zshrc.stat.exists

2
ssh_askpass.conf Normal file
View File

@ -0,0 +1,2 @@
SSH_ASKPASS=/usr/bin/ksshaskpass
SSH_ASKPASS_REQUIRE=prefer

View File

@ -1,144 +0,0 @@
format = """
[](#9A348E)\
$os\
$username\
[](bg:#DA627D fg:#9A348E)\
$directory\
[](fg:#DA627D bg:#FCA17D)\
$git_branch\
$git_status\
[](fg:#FCA17D bg:#86BBD8)\
$c\
$elixir\
$elm\
$golang\
$gradle\
$haskell\
$java\
$julia\
$nodejs\
$nim\
$rust\
$scala\
[](fg:#86BBD8 bg:#06969A)\
$docker_context\
[](fg:#06969A bg:#33658A)\
$time\
[ ](fg:#33658A)\
"""
# Disable the blank line at the start of the prompt
# add_newline = false
# You can also replace your username with a neat symbol like  or disable this
# and use the os module below
[username]
show_always = true
style_user = "bg:#9A348E"
style_root = "bg:#9A348E"
format = '[$user ]($style)'
disabled = false
# An alternative to the username module which displays a symbol that
# represents the current operating system
[os]
style = "bg:#9A348E"
disabled = true # Disabled by default
[directory]
style = "bg:#DA627D"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"
# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
[directory.substitutions]
"Documents" = "󰈙 "
"Downloads" = " "
"Music" = " "
"Pictures" = " "
# Keep in mind that the order matters. For example:
# "Important Documents" = " 󰈙 "
# will not be replaced, because "Documents" was already substituted before.
# So either put "Important Documents" before "Documents" or use the substituted version:
# "Important 󰈙 " = " 󰈙 "
[c]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[docker_context]
symbol = " "
style = "bg:#06969A"
format = '[ $symbol $context ]($style)'
[elixir]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[elm]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[git_branch]
symbol = ""
style = "bg:#FCA17D"
format = '[ $symbol $branch ]($style)'
[git_status]
style = "bg:#FCA17D"
format = '[$all_status$ahead_behind ]($style)'
[golang]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[gradle]
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[haskell]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[java]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[julia]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[nodejs]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[nim]
symbol = "󰆥 "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[rust]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[scala]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
style = "bg:#33658A"
format = '[ ♥ $time ]($style)'

238
todo_ansible.md Normal file
View File

@ -0,0 +1,238 @@
Here's how such a role-based Ansible dotfiles configuration would work:
## Directory Structure
```
dotfiles/
├── playbook.yml # Main playbook
├── group_vars/
│ └── all.yml # Your config with default_roles
├── roles/
│ ├── system/
│ │ ├── tasks/main.yml
│ │ ├── vars/main.yml
│ │ └── files/
│ ├── git/
│ │ ├── tasks/main.yml
│ │ ├── templates/
│ │ │ └── .gitconfig.j2
│ │ └── vars/main.yml
│ ├── neovim/
│ │ ├── tasks/main.yml
│ │ └── files/
│ └── zsh/
│ ├── tasks/main.yml
│ ├── files/
│ │ └── .zshrc
│ └── vars/main.yml
└── inventory
```
## Main Configuration (`group_vars/all.yml`)
```yaml
# Your system configuration
default_roles:
- system
- git
- neovim
- zsh
- docker
# Global variables
dotfiles_dir: "{{ ansible_env.HOME }}/dotfiles"
config_dir: "{{ ansible_env.HOME }}/.config"
# Git configuration
git_user_name: "Johannes"
git_user_email: "johannes@example.com"
git_editor: "nvim"
# System packages to install
system_packages:
- curl
- wget
- unzip
- tree
```
## Main Playbook (`playbook.yml`)
```yaml
---
- name: Setup development environment
hosts: localhost
connection: local
become: yes
become_method: sudo
pre_tasks:
- name: Create btrfs snapshot before changes
shell: |
sudo btrfs subvolume snapshot / /.snapshots/before-dotfiles-$(date +%Y%m%d-%H%M%S)
ignore_errors: yes
tags: [snapshot]
roles: "{{ default_roles }}"
post_tasks:
- name: Summary of installed roles
debug:
msg: "Completed setup for: {{ default_roles | join(', ') }}"
```
## Example Roles
### System Role (`roles/system/tasks/main.yml`)
```yaml
---
- name: Install system packages
package:
name: "{{ system_packages }}"
state: present
- name: Ensure .config directory exists
file:
path: "{{ config_dir }}"
state: directory
mode: '0755'
- name: Set up shell as default
user:
name: "{{ ansible_env.USER }}"
shell: /usr/bin/zsh
when: "'zsh' in default_roles"
```
### Git Role (`roles/git/tasks/main.yml`)
```yaml
---
- name: Install git
package:
name: git
state: present
- name: Check if custom gitconfig exists
stat:
path: "{{ dotfiles_dir }}/git/.gitconfig"
register: custom_gitconfig
- name: Use custom gitconfig if available
file:
src: "{{ dotfiles_dir }}/git/.gitconfig"
dest: "{{ ansible_env.HOME }}/.gitconfig"
state: link
force: yes
when: custom_gitconfig.stat.exists
- name: Generate gitconfig from template if no custom config
template:
src: .gitconfig.j2
dest: "{{ ansible_env.HOME }}/.gitconfig"
mode: '0644'
when: not custom_gitconfig.stat.exists
```
### Git Template (`roles/git/templates/.gitconfig.j2`)
```ini
[user]
name = {{ git_user_name }}
email = {{ git_user_email }}
[core]
editor = {{ git_editor }}
autocrlf = input
[init]
defaultBranch = main
[push]
default = simple
```
### Neovim Role (`roles/neovim/tasks/main.yml`)
```yaml
---
- name: Install neovim
package:
name: neovim
state: present
- name: Check for custom neovim config
stat:
path: "{{ dotfiles_dir }}/nvim"
register: nvim_config
- name: Symlink neovim config
file:
src: "{{ dotfiles_dir }}/nvim"
dest: "{{ config_dir }}/nvim"
state: link
force: yes
when: nvim_config.stat.exists
- name: Create basic neovim config if none exists
copy:
content: |
-- Basic Neovim configuration
vim.opt.number = true
vim.opt.expandtab = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
dest: "{{ config_dir }}/nvim/init.lua"
mode: '0644'
when: not nvim_config.stat.exists
```
### ZSH Role (`roles/zsh/tasks/main.yml`)
```yaml
---
- name: Install zsh
package:
name: zsh
state: present
- name: Install oh-my-zsh
shell: |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" --unattended
args:
creates: "{{ ansible_env.HOME }}/.oh-my-zsh"
- name: Check for custom zshrc
stat:
path: "{{ dotfiles_dir }}/zsh/.zshrc"
register: custom_zshrc
- name: Symlink custom zshrc
file:
src: "{{ dotfiles_dir }}/zsh/.zshrc"
dest: "{{ ansible_env.HOME }}/.zshrc"
state: link
force: yes
when: custom_zshrc.stat.exists
```
## Usage
**To install everything:**
```bash
ansible-playbook -i inventory playbook.yml --ask-become-pass
```
**To install only specific roles:**
```bash
ansible-playbook -i inventory playbook.yml --ask-become-pass --tags "git,neovim"
```
**To override roles temporarily:**
```bash
ansible-playbook -i inventory playbook.yml --ask-become-pass -e "default_roles=['system','git']"
```
## Benefits of This Approach
1. **Modular**: Each tool is a separate role
2. **Configurable**: Easy to enable/disable tools in `all.yml`
3. **Reusable**: Roles can be shared across different machines
4. **Flexible**: Can override variables per host/group
5. **Fallback configs**: Generates basic configs when custom ones don't exist
6. **Scalable**: Easy to add new tools without touching existing code
This approach lets you manage your entire development environment as code while keeping it organized and maintainable!