Compare commits
No commits in common. "cf2f755791eb88c0324f190736559b0a9f8555fb" and "b8b0af08815f116f6d51f3173e2c2c35381b7fc1" have entirely different histories.
cf2f755791
...
b8b0af0881
10 changed files with 14 additions and 36 deletions
3
.bin/.e
3
.bin/.e
|
@ -20,7 +20,6 @@ declare -A mapper=(
|
|||
["hyprland"]="$HOME/.config/hypr/hyprland.conf"
|
||||
["nvim"]="$HOME/.config/astronvim/lua/user/"
|
||||
["polybar"]="$HOME/.config/polybar"
|
||||
["projectsrc"]="$HOME/.config/projectsrc"
|
||||
["qutebrowser"]="$HOME/.config/qutebrowser/config.py"
|
||||
["qutebrowser-kiosk"]="$HOME/.config/qutebrowser/config_kiosk.py"
|
||||
["rclone"]="$HOME/.config/rclone/rclone.conf"
|
||||
|
@ -52,7 +51,7 @@ declare -A directory=(
|
|||
)
|
||||
|
||||
declare -A hooks=(
|
||||
["projectsrc"]="projects-status"
|
||||
["autostart.toml"]="autostart-manage sync"
|
||||
["qutebrowser"]="qutebrowser :config-source"
|
||||
["qutebrowser-kiosk"]="qutebrowser-kiosk :config-source" # broken due to qutebrowser-kiosk being an alias
|
||||
["sway"]="sway reload"
|
||||
|
|
|
@ -1,19 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
project_dir="$(git rev-parse --show-toplevel)"
|
||||
action="${1:-show}"
|
||||
target="${2:-}"
|
||||
|
||||
if [ "$action" = "save" ]; then
|
||||
target="" # Save all files
|
||||
fi
|
||||
|
||||
if [ -z "$project_dir" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$project_dir" || exit 1
|
||||
|
||||
url="$(git remote get-url origin)"
|
||||
|
||||
re="^(https|git)(:\/\/|@)([^\/:]+)[\/:]([^\/:]+)\/(.+)(.git)*$"
|
||||
|
@ -34,32 +26,24 @@ if ! pass "ansible/$project" >/dev/null 2>&1; then
|
|||
fi
|
||||
|
||||
pass_content=$(pass "ansible/$project")
|
||||
pass_paths=()
|
||||
|
||||
grep_filter="^path:"
|
||||
if [ -n "$target" ]; then
|
||||
grep_filter="^path: $target$"
|
||||
fi
|
||||
while read -r pass_path; do
|
||||
pass_paths+=("$pass_path")
|
||||
done <<< "$(echo "$pass_content" | grep "$grep_filter" | cut -d' ' -f2-)"
|
||||
|
||||
pass_path=$project_dir/$(echo "$pass_content" | grep "path:" | cut -d' ' -f2-)
|
||||
|
||||
action="${1:-show}"
|
||||
case "$action" in
|
||||
show)
|
||||
echo "$pass_content" | head -n 1
|
||||
exit 0 ;;
|
||||
view)
|
||||
ansible-vault view "${pass_paths[@]}"
|
||||
ansible-vault view "$pass_path"
|
||||
exit 0 ;;
|
||||
edit)
|
||||
ansible-vault edit "${pass_paths[@]}"
|
||||
ansible-vault edit "$pass_path"
|
||||
exit 0 ;;
|
||||
deploy)
|
||||
pass show "ansible/$project.tar" | tar x
|
||||
pass show "ansible/$project.file" > "$pass_path"
|
||||
exit 0 ;;
|
||||
save)
|
||||
tar c "${pass_paths[@]}" | pass insert -m "ansible/$project.tar"
|
||||
pass insert -m "ansible/$project.file" < "$pass_path"
|
||||
exit 0 ;;
|
||||
pass-edit)
|
||||
pass edit "ansible/$project"
|
||||
|
|
|
@ -64,8 +64,6 @@ alias sudo='sudo '
|
|||
alias taketemp='take $(mktemp -d)'
|
||||
alias tokei='tokei --hidden'
|
||||
|
||||
alias vim-rg="vim-grep"
|
||||
|
||||
alias watch='watch -c'
|
||||
alias wget='wget -c'
|
||||
|
||||
|
|
|
@ -32,13 +32,13 @@ AUTOINSTALL_ITEM_TARGET="pkl"
|
|||
AUTOINSTALL_ITEM_GROUPS="base"
|
||||
|
||||
AUTOINSTALL_ITEM_TYPE="exe"
|
||||
AUTOINSTALL_ITEM_SOURCE="https://git.serguzim.me/serguzim/autostart-manage/releases/download/latest/autostart-manage"
|
||||
AUTOINSTALL_ITEM_SOURCE="https://git.serguzim.me/serguzim/tools/releases/download/latest/autostart-manage"
|
||||
AUTOINSTALL_ITEM_TARGET="autostart-manage"
|
||||
AUTOINSTALL_ITEM_GROUPS="base,personal"
|
||||
AUTOINSTALL_ITEM_COMPLETIONS="completions"
|
||||
|
||||
AUTOINSTALL_ITEM_TYPE="exe"
|
||||
AUTOINSTALL_ITEM_SOURCE="https://git.serguzim.me/serguzim/autoinstall/releases/download/latest/autoinstall"
|
||||
AUTOINSTALL_ITEM_SOURCE="https://git.serguzim.me/serguzim/tools/releases/download/latest/autoinstall"
|
||||
AUTOINSTALL_ITEM_TARGET="autoinstall"
|
||||
AUTOINSTALL_ITEM_GROUPS="base,personal"
|
||||
AUTOINSTALL_ITEM_COMPLETIONS="completions"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[hosts.portalo]
|
||||
groups = ['common', 'chat', 'messenger']
|
||||
groups = ['common', 'wayland', 'chat', 'messenger', 'hyprland']
|
||||
|
||||
[apps.autotiling]
|
||||
command = 'autotiling'
|
||||
|
@ -50,7 +50,7 @@ group = 'chat'
|
|||
[apps.hyprland-handler]
|
||||
command = '$XDG_CONFIG_HOME/hypr/handler.sh'
|
||||
hosts = []
|
||||
group = 'hyprland'
|
||||
group = 'wayland'
|
||||
|
||||
[apps.kdeconnect]
|
||||
command = '$HOME/.nix-profile/libexec/kdeconnectd'
|
||||
|
@ -96,7 +96,7 @@ group = ''
|
|||
[apps.sxhkd]
|
||||
command = 'sxhkd'
|
||||
hosts = []
|
||||
group = 'bspwm'
|
||||
group = 'x11'
|
||||
|
||||
[apps.syncthing]
|
||||
command = 'syncthing serve --no-browser --verbose'
|
||||
|
@ -138,7 +138,7 @@ group = 'x11'
|
|||
[apps.waybar]
|
||||
command = 'waybar'
|
||||
hosts = []
|
||||
group = 'wayland'
|
||||
group = 'hyprland'
|
||||
|
||||
[apps.webhook]
|
||||
command = 'webhook -hooks $XDG_CONFIG_HOME/hooks.yaml -verbose -hotreload'
|
||||
|
|
|
@ -108,5 +108,4 @@ bspc rule -a 'Thunderbird:Mail' desktop='messenger' locked='true'
|
|||
bspc rule -a 'thunderbird-default:Mail' desktop='messenger' locked='true'
|
||||
bspc rule -a 'thunderbird' desktop='messenger' locked='true'
|
||||
|
||||
autostart-manage sync x11,bspwm
|
||||
autostart-manage run-xorg &
|
||||
|
|
|
@ -10,5 +10,4 @@ source = ~/.config/hypr/binds.conf
|
|||
source = ~/.config/hypr/rules.conf
|
||||
|
||||
exec-once = autostart-manage start wallpaper
|
||||
exec-once = autostart-manage sync wayland,hyprland
|
||||
exec-once = autostart-manage run-wayland
|
||||
|
|
|
@ -32,7 +32,6 @@ def init(c):
|
|||
'!lh': 'http://localhost:{}/',
|
||||
'!12ft': 'http://12ft.io/proxy?q={}/',
|
||||
'!osm': 'https://www.openstreetmap.org/search?query={}',
|
||||
'!cheatsheet': 'https://cheatsheets.zip/?q={}',
|
||||
}
|
||||
c.url.start_pages = [
|
||||
'https://rss.serguzim.me/',
|
||||
|
|
|
@ -2,5 +2,4 @@ include ~/.config/sway/config.d/*.conf
|
|||
|
||||
bar swaybar_command waybar
|
||||
|
||||
exec_always autostart-manage sync wayland,sway
|
||||
exec_always autostart-manage run-wayland
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
.bin/host-backup-portalo
|
||||
.config/autorestic/.autorestic.yml##hostname.portalo,default
|
||||
.config/env.d/99-secrets
|
||||
.config/projectsrc
|
||||
|
|
Loading…
Reference in a new issue