Compare commits

..

2 commits

Author SHA1 Message Date
9a0276e495
Add eza as autoinstall option 2023-12-16 03:58:02 +01:00
2779597e69
Update configs
Remove swww (just color now)
Add pre-commit
Increase user-cleaner verbosity
2023-12-15 14:12:29 +01:00
6 changed files with 27 additions and 12 deletions

View file

@ -21,7 +21,12 @@ _autoinstall_base () {
&& _autoinstall_exe \
"https://github.com/TheLocehiliosan/yadm/raw/master/yadm" \
"$HOME/.local/bin/yadm" \
&& yadm alt
[ ! -x "$(command -v "eza")" ] \
&& _autoinstall_exe \
"https://github.com/eza-community/eza/releases/download/v0.17.0/eza_x86_64-unknown-linux-gnu.tar.gz" \
"$HOME/.local/bin/eza" \
"tar xzO"
return 0
}
@ -71,6 +76,8 @@ _autoinstall_all () {
return 0
}
# $1: URL
# $2: path
_autoinstall_git () {
if [ ! -d "$2" ]
then
@ -82,6 +89,9 @@ _autoinstall_git () {
return 1
}
# $1: URL
# $2: path
# $3: curl pipe
_autoinstall_file () {
if [ ! -f "$2" ]
then
@ -89,12 +99,14 @@ _autoinstall_file () {
file_path=$(dirname "$2")
mkdir -p "$file_path"
cd "$file_path" || exit
curl -fsSLo "$2" "$1"
curl -fsSL "$1" | eval "${3:-cat}" > "$2"
return 0
fi
return 1
}
# $1: text
# $2: path
_autoinstall_text() {
if [ ! -f "$2" ]
then
@ -108,10 +120,15 @@ _autoinstall_text() {
return 1
}
# $1: URL
# $2: path
# $3: curl pipe
_autoinstall_exe () {
_autoinstall_file "$1" "$2" && chmod +x "$2"
_autoinstall_file "$1" "$2" "$3" && chmod +x "$2"
}
# $1: URL
# $2: path
_autoinstall_archive () {
if [ ! -f "$2" ]
then
@ -126,6 +143,8 @@ _autoinstall_archive () {
return 1
}
# $1: template
# $2: path
_autoinstall_env () {
if [ -x "$(command -v envsubst)" ]
then

View file

@ -7,6 +7,6 @@ log_dir="$HOME/.cache/logs"
if [ -d "$log_dir" ]
then
echo "Cleaning old logs..."
find "$log_dir" -type f -mtime +7 -delete
find "$log_dir" -type f -mtime +1 -size -25k -delete
find "$log_dir" -type f -mtime +7 -print -delete
find "$log_dir" -type f -mtime +1 -size -25k -print -delete
fi

View file

@ -88,12 +88,6 @@ command = 'flatpak run com.valvesoftware.Steam -silent'
hosts = ['portalo']
group = ''
[apps.swww]
alias = 'wallpaper'
command = 'swww init --no-daemon'
hosts = []
group = 'wayland'
[apps.sxhkd]
command = 'sxhkd'
hosts = []

View file

@ -14,6 +14,7 @@
git # git
gitflow # tool for git workflow
git-lfs # git support for large files
hostname # tool to get hostname
jq # tool for json
moar # moar is less
nix-direnv # allow better nix and direnv integration
@ -21,6 +22,7 @@
lsof # who uses that drive/directory
openssh # ssh client and server
pass # password-store
pre-commit # tool for git pre-commit hooks
p7zip # tool to extract 7z archives
rclone # tool for remote storages
restic # backup tool

View file

@ -6,7 +6,6 @@
cliphist # clipboard manager (history)
grim # needed for screenshots/flameshot
slurp # needed for screenshots
swww # wallpaper daemon
wl-clipboard # clipboard manager (tools)
#xdg-desktop-portal
#xdg-desktop-portal-hyprland

View file

@ -33,6 +33,7 @@ general {
misc {
disable_hyprland_logo = true
background_color = 0x1E1F29
}
decoration {