From c3faaf6c3794be89725709bb1fe64ed31a2e49f1 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sat, 13 Apr 2024 23:09:09 +0200 Subject: [PATCH] more dot files, and ansible installer --- .config/tabby/config.yaml | 218 ++++++++++++++++++++++++++++++++++++++ .zshrc | 44 ++++++++ README.md | 12 +++ bootstrap.yml | 77 ++++++++++++++ 4 files changed, 351 insertions(+) create mode 100644 .config/tabby/config.yaml create mode 100644 .zshrc create mode 100644 README.md create mode 100644 bootstrap.yml diff --git a/.config/tabby/config.yaml b/.config/tabby/config.yaml new file mode 100644 index 0000000..1ca0d89 --- /dev/null +++ b/.config/tabby/config.yaml @@ -0,0 +1,218 @@ +version: 7 +profiles: [] +groups: [] +configSync: + parts: {} +hotkeys: + toggle-window: + - Ctrl-Space + copy-current-path: [] + ctrl-c: + - Ctrl-C + copy: + - Ctrl-Shift-C + paste: + - Ctrl-Shift-V + - Shift-Insert + select-all: + - Ctrl-Shift-A + clear: [] + zoom-in: + - Ctrl-= + - Ctrl-Shift-= + zoom-out: + - Ctrl-- + - Ctrl-Shift-- + reset-zoom: + - Ctrl-0 + home: + - Home + end: + - End + previous-word: + - Ctrl-Left + next-word: + - Ctrl-Right + delete-previous-word: + - Ctrl-Backspace + delete-line: + - Ctrl-Shift-Backspace + delete-next-word: + - Ctrl-Delete + search: + - Ctrl-Shift-F + pane-focus-all: + - Ctrl-Shift-I + focus-all-tabs: + - Ctrl-Alt-Shift-I + scroll-to-top: + - Ctrl-PageUp + scroll-up: + - Alt-PageUp + scroll-down: + - Alt-PageDown + scroll-to-bottom: + - Ctrl-PageDown + restart-telnet-session: [] + restart-ssh-session: [] + launch-winscp: [] + settings-tab: {} + settings: + - Ctrl-, + serial: + - Alt-K + restart-serial-session: [] + new-tab: + - Ctrl-Shift-T + new-window: + - Ctrl-Shift-N + profile: {} + profile-selectors: {} + toggle-fullscreen: + - F11 + close-tab: + - Ctrl-Shift-W + reopen-tab: + - Ctrl-Shift-Z + toggle-last-tab: [] + rename-tab: + - Ctrl-Shift-R + next-tab: + - Ctrl-Shift-Right + - Ctrl-Tab + previous-tab: + - Ctrl-Shift-Left + - Ctrl-Shift-Tab + move-tab-left: + - Ctrl-Shift-PageUp + move-tab-right: + - Ctrl-Shift-PageDown + rearrange-panes: + - Ctrl-Shift + duplicate-tab: [] + restart-tab: [] + reconnect-tab: [] + disconnect-tab: [] + explode-tab: + - Ctrl-Shift-. + combine-tabs: + - Ctrl-Shift-, + tab-1: + - Alt-1 + tab-2: + - Alt-2 + tab-3: + - Alt-3 + tab-4: + - Alt-4 + tab-5: + - Alt-5 + tab-6: + - Alt-6 + tab-7: + - Alt-7 + tab-8: + - Alt-8 + tab-9: + - Alt-9 + tab-10: + - Alt-0 + tab-11: [] + tab-12: [] + tab-13: [] + tab-14: [] + tab-15: [] + tab-16: [] + tab-17: [] + tab-18: [] + tab-19: [] + tab-20: [] + split-right: + - Ctrl-Shift-S + split-bottom: + - Ctrl-Shift-D + split-left: [] + split-top: [] + pane-nav-right: + - Ctrl-Alt-Right + pane-nav-down: + - Ctrl-Alt-Down + pane-nav-up: + - Ctrl-Alt-Up + pane-nav-left: + - Ctrl-Alt-Left + pane-nav-previous: + - Ctrl-Alt-[ + pane-nav-next: + - Ctrl-Alt-] + pane-nav-1: [] + pane-nav-2: [] + pane-nav-3: [] + pane-nav-4: [] + pane-nav-5: [] + pane-nav-6: [] + pane-nav-7: [] + pane-nav-8: [] + pane-nav-9: [] + pane-maximize: + - Ctrl-Alt-Enter + pane-increase-vertical: [] + pane-decrease-vertical: [] + pane-increase-horizontal: [] + pane-decrease-horizontal: [] + close-pane: [] + switch-profile: + - Ctrl-Alt-T + profile-selector: + - Ctrl-Shift-E + command-selector: + - Ctrl-Shift-P +terminal: + searchOptions: {} + colorScheme: + name: Tabby Default + foreground: '#cacaca' + background: '#171717' + cursor: '#bbbbbb' + colors: + - '#000000' + - '#ff615a' + - '#b1e969' + - '#ebd99c' + - '#5da9f6' + - '#e86aff' + - '#82fff7' + - '#dedacf' + - '#313131' + - '#f58c80' + - '#ddf88f' + - '#eee5b2' + - '#a5c7ff' + - '#ddaaff' + - '#b7fff9' + - '#ffffff' + customColorSchemes: [] + copyOnSelect: true + font: MesloLGM Nerd Font + cursor: underline + profile: local:binbash + pasteOnMiddleClick: true +ssh: {} +clickableLinks: + modifier: ctrlKey +accessibility: + animations: false +appearance: + colorSchemeMode: auto +hacks: {} +providerBlacklist: [] +commandBlacklist: [] +enableAnalytics: false +enableWelcomeTab: false +pluginBlacklist: [] +profileDefaults: + ssh: + disableDynamicTitle: true +profileBlacklist: [] +enableAutomaticUpdates: false +recoverTabs: false diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..23e628e --- /dev/null +++ b/.zshrc @@ -0,0 +1,44 @@ +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=2000 +setopt nomatch +unsetopt autocd beep extendedglob notify +bindkey -e +# End of lines configured by zsh-newuser-install +# The following lines were added by compinstall +zstyle :compinstall filename '/home/h44z/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall + +# some more ls aliases +alias ll='ls -l' +alias lla='ls -la' +alias la='ls -A' +#alias l='ls -CF' + +# some other useful aliases +alias dc='docker-compose' +alias ..='cd ..' +alias ...='cd ..; cd ..' +alias ....='cd ..; cd ..; cd ..' +alias open=xdg-open +alias grep='grep --color=always' +alias vi='vim' + +# command not found helper +if [[ -f /usr/share/doc/find-the-command/ftc.zsh ]] ; then + source /usr/share/doc/find-the-command/ftc.zsh +fi + +# setup oh-my-posh +if [ -x /usr/bin/oh-my-posh ]; then + eval "$(oh-my-posh init zsh --config ~/.ohmyposh/myshell.minimal.omp.json)" +fi + +# start archey4 +if [ -x /usr/bin/archey ]; then + archey +fi diff --git a/README.md b/README.md new file mode 100644 index 0000000..b02b36d --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Dotfiles and dependencies managed by ansible + +Prequesites are Python 3, PIP and ansible: +```shell +sudo pacman -S python python-pip ansible +``` + +Bootstrap the dotfiles: + +```shell +ansible-playbook --ask-become-pass bootstrap.yml +``` \ No newline at end of file diff --git a/bootstrap.yml b/bootstrap.yml new file mode 100644 index 0000000..006f7d1 --- /dev/null +++ b/bootstrap.yml @@ -0,0 +1,77 @@ +- name: Bootstrap dotfile and depencies + hosts: localhost + + tasks: + - name: Full system upgrade + become: true + community.general.pacman: + update_cache: true + upgrade: true + - name: Install yay dependencies + become: true + community.general.pacman: + state: present + name: + - git + - base-devel + - name: Clone yay + git: + repo: https://aur.archlinux.org/yay.git + dest: "/tmp/yay" + update: true + - name: Build and install yay + command: + chdir: "/tmp/yay" + cmd: "makepkg -sfi --noconfirm" + creates: /usr/bin/yay + - name: Install standard dependencies + become: True + community.general.pacman: + state: present + name: + - zsh + - vim + - ttf-meslo-nerd + - name: Check install packages (for later use with yay) + ansible.builtin.command: pacman -Qm + register: installed_packages + - name: "Install package" + become: false + ansible.builtin.command: "yay --noconfirm --noprogressbar --needed --sync {{ item }}" + when: item not in installed_packages.stdout + with_items: + - find-the-command + - oh-my-posh + - archey4 + - tabby-bin + - name: Install oh-my-posh config + copy: + src: "{{playbook_dir}}/.ohmyposh/" + dest: ~/.ohmyposh/ + - name: Install oh-my-posh config for root + become: true + copy: + src: "{{playbook_dir}}/.ohmyposh/" + dest: /root/.ohmyposh/ + - name: Install bashrc + copy: + src: "{{playbook_dir}}/.bashrc" + dest: ~/.bashrc + - name: Install bashrc for root + become: true + copy: + src: "{{playbook_dir}}/.bashrc" + dest: /root/.bashrc + - name: Install zshrc + copy: + src: "{{playbook_dir}}/.zshrc" + dest: ~/.zshrc + - name: Install zshrc for root + become: true + copy: + src: "{{playbook_dir}}/.zshrc" + dest: /root/.zshrc + - name: Install tabby config + copy: + src: "{{playbook_dir}}/.config/tabby/config.yaml" + dest: ~/.config/tabby/config.yaml \ No newline at end of file