diff --git a/home/.chezmoiexternal.toml b/home/.chezmoiexternal.toml index 5f53f728..afb20a5a 100644 --- a/home/.chezmoiexternal.toml +++ b/home/.chezmoiexternal.toml @@ -23,12 +23,6 @@ refreshPeriod = "168h" include = ["*/dracula.zsh-theme", "*/lib/**"] -["bin/nb"] - type = "file" - url = "https://raw.github.com/xwmx/nb/master/nb" - executable = true - refreshPeriod = "168h" - #[".oh-my-zsh/custom/themes/dracula.zsh-theme"] # type = "file" # url = "https://github.com/dracula/zsh/archive/master.zip" diff --git a/home/bin/executable_chezmoi b/home/bin/executable_chezmoi deleted file mode 100644 index beb160c8..00000000 Binary files a/home/bin/executable_chezmoi and /dev/null differ diff --git a/home/bin/executable_monitor.tmpl b/home/bin/executable_linux-monitor.tmpl similarity index 100% rename from home/bin/executable_monitor.tmpl rename to home/bin/executable_linux-monitor.tmpl diff --git a/home/bin/executable_linux-mount-engi b/home/bin/executable_linux-mount-engi new file mode 100644 index 00000000..241a3e16 --- /dev/null +++ b/home/bin/executable_linux-mount-engi @@ -0,0 +1,3 @@ +#!/bin/bash +# +sudo mount -t cifs -o uid=tstarr,gid=tstarr,rw,vers=3.0,credentials=/home/tstarr/.smb //192.168.1.135/engi /home/tstarr/mnt/engi diff --git a/home/bin/executable_pacdef b/home/bin/executable_pacdef deleted file mode 100644 index a06703b3..00000000 --- a/home/bin/executable_pacdef +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -set -e -# Search for package and return description -dnf search "$1" | cut -d ':' -f 2- | sed -n 2p diff --git a/home/bin/executable_tof b/home/bin/executable_task-tag-fleeting similarity index 100% rename from home/bin/executable_tof rename to home/bin/executable_task-tag-fleeting diff --git a/home/bin/executable_tmux_dot b/home/bin/executable_tmux-dot similarity index 100% rename from home/bin/executable_tmux_dot rename to home/bin/executable_tmux-dot diff --git a/home/bin/executable_tmux_splat b/home/bin/executable_tmux-splat similarity index 100% rename from home/bin/executable_tmux_splat rename to home/bin/executable_tmux-splat diff --git a/home/bin/executable_initial.tmpl b/home/bin/executable_void-initial-setup.tmpl similarity index 93% rename from home/bin/executable_initial.tmpl rename to home/bin/executable_void-initial-setup.tmpl index ef166145..45c8a50d 100644 --- a/home/bin/executable_initial.tmpl +++ b/home/bin/executable_void-initial-setup.tmpl @@ -5,7 +5,7 @@ echo -e "Starting initial setup..." # Install ansible python dependencies sudo xpbs-install -Syu sudo xbps-install python3 python3-pip ansible -sudo pip install pexpect +sudo pip install pexpect github3.py # Install ansible extensions ansible-galaxy install -r {{ .chezmoi.workingTree }}/provision/requirements.yml diff --git a/home/bin/executable_update.tmpl b/home/bin/executable_void-update.tmpl similarity index 100% rename from home/bin/executable_update.tmpl rename to home/bin/executable_void-update.tmpl diff --git a/home/bin/executable_add-xbps-description.py b/home/bin/executable_void-xbps-description similarity index 100% rename from home/bin/executable_add-xbps-description.py rename to home/bin/executable_void-xbps-description diff --git a/provision/tasks/include/download-github.yml b/provision/tasks/include/download-github.yml index 09691341..40b69ced 100644 --- a/provision/tasks/include/download-github.yml +++ b/provision/tasks/include/download-github.yml @@ -1,5 +1,13 @@ -- name: Grab {{ item.repo }} latest binaries +- name: Get {{ item.repo }} information + github_release: + user: "{{ item.user }}" + repo: "{{ item.repo }}" + action: latest_release + register: repo_latest + +- name: Install {{ item.repo }} unarchive: src: "https://github.com/{{ item.user }}/{{ item.repo }}/releases/download/{{ repo_latest['tag'] }}/{{ item.name }}" dest: /usr/local/bin remote_src: true + become: true diff --git a/provision/tasks/terminal/nb.yml b/provision/tasks/terminal/nb.yml new file mode 100644 index 00000000..ffe79da4 --- /dev/null +++ b/provision/tasks/terminal/nb.yml @@ -0,0 +1,10 @@ +- name: Install nb + ansible.builtin.get_url: + url: https://raw.github.com/xwmx/nb/master/nb + dest: /usr/local/bin/nb + mode: 0755 + become: true + +- name: Setup nb completions + command: nb completions install --download + become: true diff --git a/provision/tasks/terminal/packages.yml b/provision/tasks/terminal/packages.yml index 4831a8d0..c006299f 100644 --- a/provision/tasks/terminal/packages.yml +++ b/provision/tasks/terminal/packages.yml @@ -22,3 +22,6 @@ loop: - package: rbw # Unofficial command line client for bitwarden repository: hostdir/binpkgs + +- include_tasks: nb.yml # Command line and local web note‑taking, bookmarking, archiving, and knowledge base application +- include_tasks: taskwarrior-tui.yml # Terminal User Interface (TUI) for Taskwarrior diff --git a/provision/tasks/terminal/taskwarrior-tui.yml b/provision/tasks/terminal/taskwarrior-tui.yml new file mode 100644 index 00000000..47c6195a --- /dev/null +++ b/provision/tasks/terminal/taskwarrior-tui.yml @@ -0,0 +1,6 @@ +- name: Install taskwarrior-tui + include_tasks: ../include/download-github.yml + loop: + - user: kdheepak + repo: taskwarrior-tui + name: taskwarrior-tui-x86_64-unknown-linux-gnu.tar.gz