From 7a3758e6a091b893291be3feea6d5d41b1900bfd Mon Sep 17 00:00:00 2001 From: starr-dusT Date: Sat, 10 Dec 2022 23:53:30 -0800 Subject: [PATCH] template ansible scripts --- additional-setup.md | 4 ++++ home/bin/{executable_initial => executable_initial.tmpl} | 4 ++-- home/bin/executable_tmux_dot | 2 +- home/bin/{executable_update => executable_update.tmpl} | 2 +- home/dot_config/i3/config.tmpl | 8 ++++++-- home/dot_taskrc | 4 ++++ 6 files changed, 18 insertions(+), 6 deletions(-) rename home/bin/{executable_initial => executable_initial.tmpl} (78%) rename home/bin/{executable_update => executable_update.tmpl} (88%) diff --git a/additional-setup.md b/additional-setup.md index 077a043b..68ebee8d 100644 --- a/additional-setup.md +++ b/additional-setup.md @@ -69,6 +69,10 @@ make PREFIX=/usr sudo make PREFIX=/usr install ``` +## Taskwarrior-tui + +Download a release [here](https://github.com/kdheepak/taskwarrior-tui) and move to /usr/bin. + ## PWA for Bitwarden The default Bitwarden application kind of sucks so I use a [PWA plugin](https://github.com/filips123/PWAsForFirefox). Follow instructions to install rpm and adjust ID in i3 config to launch correct PWA for Bitwarden. diff --git a/home/bin/executable_initial b/home/bin/executable_initial.tmpl similarity index 78% rename from home/bin/executable_initial rename to home/bin/executable_initial.tmpl index ebe8fcde..676cc539 100644 --- a/home/bin/executable_initial +++ b/home/bin/executable_initial.tmpl @@ -6,10 +6,10 @@ echo -e "Starting initial setup for Fedora..." sudo dnf -y update && sudo dnf install -y ansible # Install ansible extensions -ansible-galaxy install -r ~/.dotfiles/provision/requirements.yml +ansible-galaxy install -r {{ .chezmoi.workingTree }}/provision/requirements.yml # Goto playbook and run it -cd ~/.dotfiles/provision +cd {{ .chezmoi.workingTree }}/provision ansible-playbook setup.yml -i hosts --ask-become-pass # Return to where you were diff --git a/home/bin/executable_tmux_dot b/home/bin/executable_tmux_dot index 94278ffd..56e6ba2d 100644 --- a/home/bin/executable_tmux_dot +++ b/home/bin/executable_tmux_dot @@ -1,6 +1,6 @@ #!/bin/sh -DIR="~/.dotfiles" +DIR="~/.local/share/chezmoi" SESSION="Dots" SESSIONEXISTS=$(tmux list-sessions | grep $SESSION) diff --git a/home/bin/executable_update b/home/bin/executable_update.tmpl similarity index 88% rename from home/bin/executable_update rename to home/bin/executable_update.tmpl index 5546efad..f684e50e 100644 --- a/home/bin/executable_update +++ b/home/bin/executable_update.tmpl @@ -4,7 +4,7 @@ set -e echo -e "Starting update for Fedora..." # Goto playbook and run it -cd ~/.dotfiles/provision +cd {{ .chezmoi.workingTree }}/provision # Install ansible and run playbook ansible-playbook setup.yml -i hosts --ask-become-pass --tags "$1" --skip-tags "once" diff --git a/home/dot_config/i3/config.tmpl b/home/dot_config/i3/config.tmpl index b3763787..0ac613f2 100644 --- a/home/dot_config/i3/config.tmpl +++ b/home/dot_config/i3/config.tmpl @@ -95,6 +95,10 @@ for_window [con_mark="scratch-warden"] floating enable, \ resize set 1000 px 800 px, \ move position 780 px 320 px +for_window [con_mark="scratch-warrior"] floating enable, \ + resize set 1000 px 800 px, \ + move position 780 px 320 px + #------------------------------------------------------------------------------- #----- BINDING APPLICATIONS TO WORKSPACE #------------------------------------------------------------------------------- @@ -175,12 +179,12 @@ bindsym $mod+i exec steam # open scratchpads bindsym $mod+Shift+Return exec $HOME/.config/i3/scripts/scratch.sh \ 'scratch-term' 'kitty' - bindsym $mod+n exec $HOME/.config/i3/scripts/scratch.sh \ 'scratch-nnn' 'kitty -e nnn -d -e -H -r' - bindsym $mod+b exec --no-startup-id $HOME/.config/i3/scripts/scratch.sh \ 'scratch-warden' 'firefoxpwa site launch 01GKYZS658452DK05DVDCRF5V4' +bindsym $mod+m exec $HOME/.config/i3/scripts/scratch.sh \ + 'scratch-warrior' 'kitty -e taskwarrior-tui' #------------------------------------------------------------------------------- #----- AUTOSTART WITH I3 diff --git a/home/dot_taskrc b/home/dot_taskrc index d658f094..33a0df29 100644 --- a/home/dot_taskrc +++ b/home/dot_taskrc @@ -35,3 +35,7 @@ verbose=blank,footnote,label,new-id,affected,edit,special,project,sync,unwait #include no-color.theme news.version=2.6.0 + +### taskwarrior-tui configuration options + +uda.taskwarrior-tui.shortcuts.1=taskopen