Update .chezmoi.toml
Update .chezmoiignore Add .chezmoiremove Remove .bash_logout Remove .bash_profile Update .config/fish/functions/batt.fish Update .config/fish/functions/extract.fish Update .local/bin/get-gpg-key Update .xprofile Change attributes of .config/xrandr/desktop.sh Change attributes of .gnupg/gpg-agent.conf
This commit is contained in:
parent
2d36ffef03
commit
9f5c7c826f
11 changed files with 81 additions and 60 deletions
|
@ -28,9 +28,7 @@ autoPush = true
|
||||||
command = ".local/share/chezmoi/.install-bw.sh"
|
command = ".local/share/chezmoi/.install-bw.sh"
|
||||||
|
|
||||||
[data]
|
[data]
|
||||||
{{ if lookPath "get-gpg-key" -}}
|
gpgKey = {{ output (joinPath .chezmoi.sourceDir "dot_local/bin/executable_get-gpg-key") | trim | quote }}
|
||||||
gpgKey = {{ output "get-gpg-key" | trim | quote }}
|
|
||||||
{{ end -}}
|
|
||||||
passphrase = {{ $passphrase | quote }}
|
passphrase = {{ $passphrase | quote }}
|
||||||
osid = {{ $osid | quote }}
|
osid = {{ $osid | quote }}
|
||||||
{{ if eq $osid "linux-debian" -}}
|
{{ if eq $osid "linux-debian" -}}
|
||||||
|
|
|
@ -7,38 +7,40 @@ tags*
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .isServer }}
|
{{- if .isServer }}
|
||||||
|
.config/awesome
|
||||||
|
.config/cava
|
||||||
.config/composer
|
.config/composer
|
||||||
|
.config/dunst
|
||||||
|
.config/fehbg
|
||||||
.config/firefox
|
.config/firefox
|
||||||
.config/fish/conf.d/30-gtk.fish
|
.config/fish/conf.d/30-gtk.fish
|
||||||
.config/fish/conf.d/30-qt.fish
|
.config/fish/conf.d/30-qt.fish
|
||||||
.config/gtk-3.0
|
.config/gtk-3.0
|
||||||
.config/gtk-4.0
|
.config/gtk-4.0
|
||||||
.config/nvim/lua/plugins/diffview.lua
|
.config/i3
|
||||||
.config/nvim/lua/plugins/dim.lua
|
.config/mpd
|
||||||
.config/nvim/lua/plugins/gitsigns.lua
|
.config/ncmpcpp
|
||||||
.config/nvim/lua/plugins/lazygit.lua
|
.config/openrazer
|
||||||
.config/nvim/lua/plugins/nerdy.lua
|
.config/picom
|
||||||
.config/nvim/lua/plugins/nvim-devdocs.lua
|
.config/polybar
|
||||||
.config/nvim/lua/plugins/refactoring.lua
|
.config/razercommander
|
||||||
.config/nvim/lua/plugins/ssr.lua
|
.config/rofi
|
||||||
.config/nvim/lua/plugins/vim-blade.lua
|
.config/wezterm
|
||||||
.config/transmission
|
|
||||||
.config/zathura
|
.config/zathura
|
||||||
.icons
|
.icons
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if ne .osid "darwin" }}
|
{{- if ne .osid "darwin" }}
|
||||||
.config/fish/conf.d/30-python.fish
|
|
||||||
.config/packages/Brewfile
|
.config/packages/Brewfile
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if ne .chezmoi.os "linux" }}
|
{{- if ne .chezmoi.os "linux" }}
|
||||||
.config/fish/conf.d/30-gtk.fish
|
.config/fish/conf.d/30-gtk.fish
|
||||||
.config/fish/conf.d/30-journalctl.fish
|
|
||||||
.config/fish/conf.d/30-qt.fish
|
.config/fish/conf.d/30-qt.fish
|
||||||
.config/fish/conf.d/30-systemctl.fish
|
|
||||||
.config/gtk-3.0
|
.config/gtk-3.0
|
||||||
.config/gtk-4.0
|
.config/gtk-4.0
|
||||||
|
.config/mpd
|
||||||
|
.config/ncmpcpp
|
||||||
.config/openrazer
|
.config/openrazer
|
||||||
.config/razercommander
|
.config/razercommander
|
||||||
.config/zathura
|
.config/zathura
|
||||||
|
@ -47,19 +49,18 @@ tags*
|
||||||
|
|
||||||
{{- if ne .osid "linux-arch" }}
|
{{- if ne .osid "linux-arch" }}
|
||||||
.config/awesome
|
.config/awesome
|
||||||
.config/fish/conf.d/30-yay.fish
|
.config/copyq
|
||||||
.config/fish/functions/pkgsearch.fish
|
.config/dunst
|
||||||
.config/mopidy
|
.config/fehbg
|
||||||
.config/ncmpcpp
|
.config/i3
|
||||||
.config/packages/arch*
|
.config/packages/arch*
|
||||||
.config/pacman
|
.config/pacman
|
||||||
.config/qalculate
|
.config/picom
|
||||||
|
.config/polybar
|
||||||
.config/rofi
|
.config/rofi
|
||||||
.config/yay
|
.config/yay
|
||||||
.config/.fehbg
|
.config/xrandr
|
||||||
.config/picom.conf
|
|
||||||
.local/bin/update-package-list
|
.local/bin/update-package-list
|
||||||
.screenlayout
|
|
||||||
.xprofile
|
.xprofile
|
||||||
.Xresources
|
.Xresources
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
2
.chezmoiremove
Normal file
2
.chezmoiremove
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
.bash_logout
|
||||||
|
.bash_profile
|
|
@ -1,3 +0,0 @@
|
||||||
#
|
|
||||||
# ~/.bash_logout
|
|
||||||
#
|
|
|
@ -1,5 +0,0 @@
|
||||||
#
|
|
||||||
# ~/.bash_profile
|
|
||||||
#
|
|
||||||
|
|
||||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
function batt -d "Check battery percentage"
|
if command -v upower &>/dev/null
|
||||||
upower -i /org/freedesktop/UPower/devices/battery_BAT0 \
|
function batt -d "Check battery percentage"
|
||||||
| grep -E "state|time to|percentage"
|
upower -i /org/freedesktop/UPower/devices/battery_BAT0 \
|
||||||
|
| grep -E "state|time to|percentage"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,17 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
# Extracts archived files / mounts disk images.
|
# Extracts archived files / mounts disk images.
|
||||||
# Usage: extract <file>
|
# Usage: extract <file> <extra args>
|
||||||
|
|
||||||
|
function run_cmd --argument-names cmd
|
||||||
|
set -f cmd_name (string split -f1 ' ' "$cmd")
|
||||||
|
|
||||||
|
if command -v "$cmd" &>/dev/null
|
||||||
|
eval "$cmd"
|
||||||
|
else
|
||||||
|
printf "Please install %s to extract this file.\n" "$cmd_name"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function extract -a file
|
function extract -a file
|
||||||
set --erase argv[1]
|
set --erase argv[1]
|
||||||
|
@ -9,35 +19,48 @@ function extract -a file
|
||||||
if test -f "$file"
|
if test -f "$file"
|
||||||
switch "$file"
|
switch "$file"
|
||||||
case "*.tar.bz2"
|
case "*.tar.bz2"
|
||||||
tar -jxvf $argv "$file"
|
run_cmd "tar -jxvf $argv $file"
|
||||||
|
|
||||||
case "*.tar.gz"
|
case "*.tar.gz"
|
||||||
tar -zxvf $argv "$file"
|
run_cmd "tar -zxvf $argv $file"
|
||||||
|
|
||||||
case "*.bz2"
|
case "*.bz2"
|
||||||
bunzip2 $argv "$file"
|
run_cmd "bunzip2 $argv $file"
|
||||||
|
|
||||||
case "*.dmg"
|
case "*.dmg"
|
||||||
if test "$(uname)" = Darwin
|
if test "$(uname)" = Darwin
|
||||||
hdiutil mount "$file"
|
hdiutil mount "$file"
|
||||||
end
|
end
|
||||||
|
|
||||||
case "*.gz"
|
case "*.gz"
|
||||||
gunzip $argv "$file"
|
run_cmd "gunzip $argv $file"
|
||||||
|
|
||||||
case "*.tar"
|
case "*.tar"
|
||||||
tar -xvf $argv "$file"
|
run_cmd "tar -xvf $argv $file"
|
||||||
|
|
||||||
case "*.tbz2"
|
case "*.tbz2"
|
||||||
tar -jxvf $argv "$file"
|
run_cmd "tar -jxvf $argv $file"
|
||||||
|
|
||||||
case "*.tgz"
|
case "*.tgz"
|
||||||
tar -zxvf $argv "$file"
|
run_cmd "tar -zxvf $argv $file"
|
||||||
|
|
||||||
case "*.zip" "*.ZIP"
|
case "*.zip" "*.ZIP"
|
||||||
set -f dir (string replace --ignore-case '.zip' '')
|
set -f dir (string replace --ignore-case '.zip' '')
|
||||||
mkdir "$dir"
|
mkdir "$dir"
|
||||||
unzip $argv "$file" -d "$dir"
|
run_cmd "unzip $argv $file -d $dir"
|
||||||
|
|
||||||
case "*pax"
|
case "*pax"
|
||||||
cat "$file" | pax -r $argv
|
run_cmd "cat $file | pax -r $argv"
|
||||||
|
|
||||||
case "*.pax.Z"
|
case "*.pax.Z"
|
||||||
uncompress "$file" --stdout | pax -r $argv
|
run_cmd "uncompress $file --stdout | pax -r $argv"
|
||||||
|
|
||||||
case "*.rar"
|
case "*.rar"
|
||||||
unrar x "$file"
|
run_cmd "unrar x $file"
|
||||||
|
|
||||||
case "*.Z"
|
case "*.Z"
|
||||||
uncompress $argv "$file"
|
run_cmd "uncompress $argv $file"
|
||||||
|
|
||||||
case "*"
|
case "*"
|
||||||
echo "'$file' cannot be extracted/mounted via extract()."
|
echo "'$file' cannot be extracted/mounted via extract()."
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -f key (\
|
key="$(
|
||||||
gpg --list-secret-keys --keyid-format SHORT\
|
gpg --list-secret-keys --keyid-format SHORT | grep 'rsa4096' \
|
||||||
| grep 'rsa4096' \
|
| sed 's/sec rsa4096\///' \
|
||||||
| sed 's/sec rsa4096\///'\
|
| awk '{print $1}'
|
||||||
| awk '{print $1}'\
|
)"
|
||||||
)
|
|
||||||
|
|
||||||
echo "$key"
|
echo "$key"
|
||||||
|
|
|
@ -32,22 +32,24 @@ fi
|
||||||
|
|
||||||
# shellcheck disable=all
|
# shellcheck disable=all
|
||||||
{{- if eq .chezmoi.hostname "archgirlie" }}
|
{{- if eq .chezmoi.hostname "archgirlie" }}
|
||||||
"$HOME/.screenlayout/desktop.sh"
|
"$HOME/.config/xrandr/desktop.sh"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
sudo mount -a
|
||||||
|
|
||||||
|
{{ if eq .chezmoi.hostname "archgirlie" -}}
|
||||||
|
setxkbmap -option "apple:alupckeys"
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
{{ if lookPath "copyq" -}}
|
{{ if lookPath "copyq" -}}
|
||||||
copyq &
|
copyq &
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ if lookPath "mpd" -}}
|
{{ if lookPath "mpd" -}}
|
||||||
sudo mount -a
|
|
||||||
mpd &
|
mpd &
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ if lookPath "numlockx" -}}
|
{{ if lookPath "numlockx" -}}
|
||||||
numlockx on
|
numlockx on
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ if eq .chezmoi.hostname "archgirlie" -}}
|
|
||||||
setxkbmap -option "apple:alupckeys"
|
|
||||||
{{ end -}}
|
|
||||||
{{ if lookPath "pidgin" -}}
|
{{ if lookPath "pidgin" -}}
|
||||||
pidgin &
|
pidgin &
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
{{ if lookPath "pinentry-qt5" -}}
|
||||||
pinentry-program /usr/bin/pinentry-qt5
|
pinentry-program /usr/bin/pinentry-qt5
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
# Stop asking for password so often.
|
# Stop asking for password so often.
|
||||||
default-cache-ttl 60480000
|
default-cache-ttl 60480000
|
Loading…
Reference in a new issue