config: script updates
This commit is contained in:
parent
7fad5c8fbe
commit
3fdc6968a5
|
@ -518,7 +518,7 @@ Version 2019-11-04 2021-02-16"
|
||||||
:unnarrowed t)
|
:unnarrowed t)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(cl-loop for item in '("health" "own" "list" "notes" "project" "entity:person" "tech:software:list" "faith" "inspiration" "writing")
|
(cl-loop for item in '("health" "own" "list" "notes" "project" "entity:person" "tech:software:list" "faith" "inspiration" "writing:blog")
|
||||||
do (add-to-list 'org-roam-capture-templates
|
do (add-to-list 'org-roam-capture-templates
|
||||||
`(,(substring item 0 1) ,(car (split-string item ":")) plain "%?" :target
|
`(,(substring item 0 1) ,(car (split-string item ":")) plain "%?" :target
|
||||||
(file+head ,(concat (car (split-string item ":")) "/" org-roam-extract-new-file-path) ,(concat xf/org-roam-capture-props "#+filetags: :" item ":" xf/org-roam-capture-title))
|
(file+head ,(concat (car (split-string item ":")) "/" org-roam-extract-new-file-path) ,(concat xf/org-roam-capture-props "#+filetags: :" item ":" xf/org-roam-capture-title))
|
||||||
|
|
|
@ -39,6 +39,9 @@ cmake*build*/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
|
# Templates
|
||||||
|
*.example
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
*.log
|
*.log
|
||||||
*.log.*
|
*.log.*
|
||||||
|
|
|
@ -27,7 +27,10 @@ ExecStart=-$agetty --skip-login --login-options $USER %I" |
|
||||||
sudo tee /etc/systemd/system/getty@tty1.service.d/override.conf /etc/systemd/system/getty@tty2.service.d/override.conf /etc/systemd/system/getty@tty3.service.d/override.conf
|
sudo tee /etc/systemd/system/getty@tty1.service.d/override.conf /etc/systemd/system/getty@tty2.service.d/override.conf /etc/systemd/system/getty@tty3.service.d/override.conf
|
||||||
|
|
||||||
highlight "Sysyadm setup"
|
highlight "Sysyadm setup"
|
||||||
test -d "/etc/yadm" || sy clone
|
if test -d "/etc/yadm"
|
||||||
|
then sy l
|
||||||
|
else sy clone
|
||||||
|
fi
|
||||||
|
|
||||||
SECTION "Software"
|
SECTION "Software"
|
||||||
|
|
||||||
|
@ -52,12 +55,13 @@ link() {
|
||||||
test -e "$2" -o -h "$2" || $($HOME/.local/bin/scripts/checkaccess -w "$2" || echo sudo) ln -sv "$@"
|
test -e "$2" -o -h "$2" || $($HOME/.local/bin/scripts/checkaccess -w "$2" || echo sudo) ln -sv "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p .config/audacity
|
mkdir -p "$XDG_CONFIG_HOME/audacity"
|
||||||
find $HOME -maxdepth 1 -type l -exec file {} + |
|
find $HOME -maxdepth 1 -type l -exec file {} + |
|
||||||
grep '.local/share' | grep broken |
|
grep '.local/share' | grep broken |
|
||||||
sed 's/.* //' | xargs -r mkdir -p
|
sed 's/.* //' | xargs -r mkdir -p
|
||||||
|
|
||||||
link python /usr/bin/python3
|
link python /usr/bin/python3
|
||||||
|
# TODO don't do these prematurely
|
||||||
link fdfind /usr/bin/fd
|
link fdfind /usr/bin/fd
|
||||||
link batcat /usr/bin/bat
|
link batcat /usr/bin/bat
|
||||||
|
|
||||||
|
@ -100,7 +104,7 @@ case "$(grep "^$USER" /etc/passwd | sed 's/.*://')" in (*zsh);; (*) chsh -s $(wh
|
||||||
highlight "Arch"
|
highlight "Arch"
|
||||||
if test -f /etc/pacman.conf; then
|
if test -f /etc/pacman.conf; then
|
||||||
subhighlight "Pacman"
|
subhighlight "Pacman"
|
||||||
sudo sed -i 's/#Color/Color/' /etc/pacman.conf
|
sudo sed -i 's/#Parallel/Parallel/;s/#Color/Color/;s/#UseSyslog/UseSyslog/' /etc/pacman.conf
|
||||||
sudo sed -i "$(grep -n "\[multilib\]" /etc/pacman.conf | cut -d':' -f1),+1 s/# *//" /etc/pacman.conf
|
sudo sed -i "$(grep -n "\[multilib\]" /etc/pacman.conf | cut -d':' -f1),+1 s/# *//" /etc/pacman.conf
|
||||||
if which reflector 2>/dev/null
|
if which reflector 2>/dev/null
|
||||||
then subhighlight "Reflector"
|
then subhighlight "Reflector"
|
||||||
|
@ -128,8 +132,10 @@ link "$XDG_DATA_HOME/applications/signal-tray.desktop" "$XDG_CONFIG_HOME/autosta
|
||||||
link "/usr/share/applications/stretchly.desktop" "$XDG_CONFIG_HOME/autostart/"
|
link "/usr/share/applications/stretchly.desktop" "$XDG_CONFIG_HOME/autostart/"
|
||||||
mx="$HOME/.mixxx"
|
mx="$HOME/.mixxx"
|
||||||
if ! test -d "$mx"
|
if ! test -d "$mx"
|
||||||
then mkdir "$mx" && ln -sv -t "$mx" ${XDG_DATA_HOME:-$HOME/.local/share}/mixxx/* ${XDG_CONFIG_HOME:-$HOME/.config}/mixxx/*
|
then mkdir "$mx" && ln -sv -t "$mx" ${XDG_DATA_HOME:-$HOME/.local/share}/mixxx/* $XDG_CONFIG_HOME/mixxx/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
subhighlight "Setup kakoune plugin loader"
|
subhighlight "Setup kakoune plugin loader"
|
||||||
cloneshallow plug.kak robertmeta "${XDG_CONFIG_HOME:-$HOME/.config}/kak/plugins/plug.kak"
|
cloneshallow plug.kak robertmeta "$XDG_CONFIG_HOME/kak/plugins/plug.kak"
|
||||||
|
|
||||||
|
touch $HOME/.local/state/wget-hsts
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
# TODO compress
|
||||||
|
dir="${2:-/boot/efi}"
|
||||||
|
refind="$dir/EFI/${3:-refind}"
|
||||||
|
imagepath="icons/wallpaper"
|
||||||
|
test -d "$refind/"
|
||||||
|
sudo mkdir -pv "$refind/$imagepath/"
|
||||||
|
sudo cp -v "$1" "$refind/$imagepath/"
|
||||||
|
printf "\nbanner $imagepath/$(basename "$1")\nbanner_scale fillscreen\n" | sudo tee -a "$refind/refind.conf"
|
Loading…
Reference in New Issue