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"
|
||||
|
||||
[data]
|
||||
{{ if lookPath "get-gpg-key" -}}
|
||||
gpgKey = {{ output "get-gpg-key" | trim | quote }}
|
||||
{{ end -}}
|
||||
gpgKey = {{ output (joinPath .chezmoi.sourceDir "dot_local/bin/executable_get-gpg-key") | trim | quote }}
|
||||
passphrase = {{ $passphrase | quote }}
|
||||
osid = {{ $osid | quote }}
|
||||
{{ if eq $osid "linux-debian" -}}
|
||||
|
|
|
@ -7,38 +7,40 @@ tags*
|
|||
{{- end }}
|
||||
|
||||
{{- if .isServer }}
|
||||
.config/awesome
|
||||
.config/cava
|
||||
.config/composer
|
||||
.config/dunst
|
||||
.config/fehbg
|
||||
.config/firefox
|
||||
.config/fish/conf.d/30-gtk.fish
|
||||
.config/fish/conf.d/30-qt.fish
|
||||
.config/gtk-3.0
|
||||
.config/gtk-4.0
|
||||
.config/nvim/lua/plugins/diffview.lua
|
||||
.config/nvim/lua/plugins/dim.lua
|
||||
.config/nvim/lua/plugins/gitsigns.lua
|
||||
.config/nvim/lua/plugins/lazygit.lua
|
||||
.config/nvim/lua/plugins/nerdy.lua
|
||||
.config/nvim/lua/plugins/nvim-devdocs.lua
|
||||
.config/nvim/lua/plugins/refactoring.lua
|
||||
.config/nvim/lua/plugins/ssr.lua
|
||||
.config/nvim/lua/plugins/vim-blade.lua
|
||||
.config/transmission
|
||||
.config/i3
|
||||
.config/mpd
|
||||
.config/ncmpcpp
|
||||
.config/openrazer
|
||||
.config/picom
|
||||
.config/polybar
|
||||
.config/razercommander
|
||||
.config/rofi
|
||||
.config/wezterm
|
||||
.config/zathura
|
||||
.icons
|
||||
{{- end }}
|
||||
|
||||
{{- if ne .osid "darwin" }}
|
||||
.config/fish/conf.d/30-python.fish
|
||||
.config/packages/Brewfile
|
||||
{{- end }}
|
||||
|
||||
{{- if ne .chezmoi.os "linux" }}
|
||||
.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-systemctl.fish
|
||||
.config/gtk-3.0
|
||||
.config/gtk-4.0
|
||||
.config/mpd
|
||||
.config/ncmpcpp
|
||||
.config/openrazer
|
||||
.config/razercommander
|
||||
.config/zathura
|
||||
|
@ -47,19 +49,18 @@ tags*
|
|||
|
||||
{{- if ne .osid "linux-arch" }}
|
||||
.config/awesome
|
||||
.config/fish/conf.d/30-yay.fish
|
||||
.config/fish/functions/pkgsearch.fish
|
||||
.config/mopidy
|
||||
.config/ncmpcpp
|
||||
.config/copyq
|
||||
.config/dunst
|
||||
.config/fehbg
|
||||
.config/i3
|
||||
.config/packages/arch*
|
||||
.config/pacman
|
||||
.config/qalculate
|
||||
.config/picom
|
||||
.config/polybar
|
||||
.config/rofi
|
||||
.config/yay
|
||||
.config/.fehbg
|
||||
.config/picom.conf
|
||||
.config/xrandr
|
||||
.local/bin/update-package-list
|
||||
.screenlayout
|
||||
.xprofile
|
||||
.Xresources
|
||||
{{- 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
|
||||
|
||||
function batt -d "Check battery percentage"
|
||||
upower -i /org/freedesktop/UPower/devices/battery_BAT0 \
|
||||
| grep -E "state|time to|percentage"
|
||||
if command -v upower &>/dev/null
|
||||
function batt -d "Check battery percentage"
|
||||
upower -i /org/freedesktop/UPower/devices/battery_BAT0 \
|
||||
| grep -E "state|time to|percentage"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,7 +1,17 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
# 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
|
||||
set --erase argv[1]
|
||||
|
@ -9,35 +19,48 @@ function extract -a file
|
|||
if test -f "$file"
|
||||
switch "$file"
|
||||
case "*.tar.bz2"
|
||||
tar -jxvf $argv "$file"
|
||||
run_cmd "tar -jxvf $argv $file"
|
||||
|
||||
case "*.tar.gz"
|
||||
tar -zxvf $argv "$file"
|
||||
run_cmd "tar -zxvf $argv $file"
|
||||
|
||||
case "*.bz2"
|
||||
bunzip2 $argv "$file"
|
||||
run_cmd "bunzip2 $argv $file"
|
||||
|
||||
case "*.dmg"
|
||||
if test "$(uname)" = Darwin
|
||||
hdiutil mount "$file"
|
||||
end
|
||||
|
||||
case "*.gz"
|
||||
gunzip $argv "$file"
|
||||
run_cmd "gunzip $argv $file"
|
||||
|
||||
case "*.tar"
|
||||
tar -xvf $argv "$file"
|
||||
run_cmd "tar -xvf $argv $file"
|
||||
|
||||
case "*.tbz2"
|
||||
tar -jxvf $argv "$file"
|
||||
run_cmd "tar -jxvf $argv $file"
|
||||
|
||||
case "*.tgz"
|
||||
tar -zxvf $argv "$file"
|
||||
run_cmd "tar -zxvf $argv $file"
|
||||
|
||||
case "*.zip" "*.ZIP"
|
||||
set -f dir (string replace --ignore-case '.zip' '')
|
||||
mkdir "$dir"
|
||||
unzip $argv "$file" -d "$dir"
|
||||
run_cmd "unzip $argv $file -d $dir"
|
||||
|
||||
case "*pax"
|
||||
cat "$file" | pax -r $argv
|
||||
run_cmd "cat $file | pax -r $argv"
|
||||
|
||||
case "*.pax.Z"
|
||||
uncompress "$file" --stdout | pax -r $argv
|
||||
run_cmd "uncompress $file --stdout | pax -r $argv"
|
||||
|
||||
case "*.rar"
|
||||
unrar x "$file"
|
||||
run_cmd "unrar x $file"
|
||||
|
||||
case "*.Z"
|
||||
uncompress $argv "$file"
|
||||
run_cmd "uncompress $argv $file"
|
||||
|
||||
case "*"
|
||||
echo "'$file' cannot be extracted/mounted via extract()."
|
||||
end
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#!/usr/bin/env fish
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -f key (\
|
||||
gpg --list-secret-keys --keyid-format SHORT\
|
||||
| grep 'rsa4096' \
|
||||
| sed 's/sec rsa4096\///'\
|
||||
| awk '{print $1}'\
|
||||
)
|
||||
key="$(
|
||||
gpg --list-secret-keys --keyid-format SHORT | grep 'rsa4096' \
|
||||
| sed 's/sec rsa4096\///' \
|
||||
| awk '{print $1}'
|
||||
)"
|
||||
|
||||
echo "$key"
|
||||
|
|
|
@ -32,22 +32,24 @@ fi
|
|||
|
||||
# shellcheck disable=all
|
||||
{{- if eq .chezmoi.hostname "archgirlie" }}
|
||||
"$HOME/.screenlayout/desktop.sh"
|
||||
"$HOME/.config/xrandr/desktop.sh"
|
||||
{{- end }}
|
||||
|
||||
sudo mount -a
|
||||
|
||||
{{ if eq .chezmoi.hostname "archgirlie" -}}
|
||||
setxkbmap -option "apple:alupckeys"
|
||||
{{ end -}}
|
||||
|
||||
{{ if lookPath "copyq" -}}
|
||||
copyq &
|
||||
{{ end -}}
|
||||
{{ if lookPath "mpd" -}}
|
||||
sudo mount -a
|
||||
mpd &
|
||||
{{ end -}}
|
||||
{{ if lookPath "numlockx" -}}
|
||||
numlockx on
|
||||
{{ end -}}
|
||||
{{ if eq .chezmoi.hostname "archgirlie" -}}
|
||||
setxkbmap -option "apple:alupckeys"
|
||||
{{ end -}}
|
||||
{{ if lookPath "pidgin" -}}
|
||||
pidgin &
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{{ if lookPath "pinentry-qt5" -}}
|
||||
pinentry-program /usr/bin/pinentry-qt5
|
||||
{{ end -}}
|
||||
|
||||
# Stop asking for password so often.
|
||||
default-cache-ttl 60480000
|
Loading…
Reference in a new issue