atlas generation 19 kernel version 6.18.8 at 07:41:49 2026-02-13 rebuilding
This commit is contained in:
parent
8ba0b15249
commit
f8efc2e056
20 changed files with 3 additions and 204 deletions
|
|
@ -45,6 +45,7 @@
|
|||
jq # json parser
|
||||
slurp # mouse grabber
|
||||
grim # png tool
|
||||
wl-clipboard
|
||||
#### COMMS ####
|
||||
signal-desktop
|
||||
#### WEBMASTER ####
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# Pass artist as argument I think. Didn't comment my code well enough last time
|
||||
|
||||
cd $HOME/Media/Music
|
||||
dumped=$(cat $HOME/dotfiles/scripts/depend/dumped.txt)
|
||||
for artist in *; do
|
||||
if [[ $artist != "Fresh" ]]; then
|
||||
echo "$artist"
|
||||
cd $artist
|
||||
for album in *; do
|
||||
echo "$album"
|
||||
cd $album
|
||||
for song in *; do
|
||||
fullpath=$(realpath $song)
|
||||
if ! [[ $dumped =~ $fullpath ]]; then
|
||||
cp $fullpath $HOME/Media/allmusic/$song
|
||||
echo $fullpath >> $HOME/dotfiles/scripts/depend/dumped.txt
|
||||
fi
|
||||
done
|
||||
cd ..
|
||||
done
|
||||
cd ..
|
||||
fi
|
||||
done
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo ""
|
||||
|
||||
cd $1
|
||||
for eachfile in *; do
|
||||
mv "$eachfile" "${eachfile//[^a-zA-Z0-9\.\(\)]/_}"
|
||||
echo "Moved $eachfile to ${eachfile//[^a-zA-Z0-9\.\(\)]/_}"
|
||||
done
|
||||
echo ""
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
count=0
|
||||
dir=${1}
|
||||
cd $dir
|
||||
webps=$(ls $dir/*.webp)
|
||||
for i in $webps; do
|
||||
magick -monitor $i ${i%%webp}gif
|
||||
count=$((count + 1))
|
||||
done
|
||||
echo "Converted $count files!"
|
||||
1
scripts/stable/glurp
Executable file
1
scripts/stable/glurp
Executable file
|
|
@ -0,0 +1 @@
|
|||
grim -g "$(slurp)" - | wl-copy && wl-paste > ~/screenshots/glurp--$(date +%F_%T).png
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
color_name="$1"
|
||||
hex="$2"
|
||||
|
||||
hex=${hex#"#"}
|
||||
r=$(printf '0x%0.2s' "$hex")
|
||||
g=$(printf '0x%0.2s' ${hex#??})
|
||||
b=$(printf '0x%0.2s' ${hex#????})
|
||||
|
||||
ansi_code="$(( (r<75?0:(r-35)/40)*6*6 +
|
||||
(g<75?0:(g-35)/40)*6 +
|
||||
(b<75?0:(b-35)/40) + 16 ))"
|
||||
|
||||
escape_color=$(printf '\e[38;5;%dm' $ansi_code)
|
||||
eval "${color_name}='${escape_color}'"
|
||||
echo $ansi_code
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd $1
|
||||
|
||||
for eachfile in *; do
|
||||
if ! [[ $eachfile == $1 ]]; then
|
||||
mv "$eachfile" "${eachfile# }"
|
||||
fi
|
||||
done
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# Pass artist as argument I think. Didn't comment my code well enough last time
|
||||
|
||||
echo ""
|
||||
|
||||
function updateTitles {
|
||||
for eachfile in *; do
|
||||
if [[ $eachfile =~ [^a-zA-Z0-9\.\(\)\_\-] ]]; then
|
||||
mv "$eachfile" "${eachfile//[^a-zA-Z0-9\.\(\)\-\_]/_}"
|
||||
echo "Moved $eachfile to ${eachfile//[^a-zA-Z0-9\.\(\)\-\_]/_}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
if [[ $1 == "h" ]]; then
|
||||
echo "=== Valid options ===" && echo "" && echo "h: Show this help." && echo "m: Manually assign track numbers. Defaults to 0 without this option."
|
||||
else
|
||||
|
||||
cd $HOME/Media/Music
|
||||
updateTitles
|
||||
indexLibrary=$(ls)
|
||||
echo "=== Artists found: ===" && echo "${indexLibrary//_/ }" && echo ""
|
||||
|
||||
for indexed in *; do
|
||||
if [[ $indexed != "Fresh" ]]; then
|
||||
cd $indexed
|
||||
updateTitles
|
||||
indexArtist=$(ls)
|
||||
echo "Albums for artist ${indexed//_/ } found:" && echo "[ ${indexArtist//_/ } ]" && echo ""
|
||||
|
||||
for indexedAlbum in *; do
|
||||
data=$(pwd) && data=${data/#"$HOME/Media/Music/"} && artist=$(echo "$data" | awk '{split($0,artist,"/"); print artist[1]}') && artist=${artist//_/ } && album=${indexedAlbum//_/ }
|
||||
cd $indexedAlbum
|
||||
updateTitles
|
||||
|
||||
for i in *; do
|
||||
tagutil add:artist="$artist" $i
|
||||
tagutil add:album="$album" $i
|
||||
title="${i%.mp3}"
|
||||
tagutil add:title="${title//_/ }" $i
|
||||
if [[ $2 == "m" ]]; then
|
||||
echo -n "${title//_/ } Track Number: "
|
||||
read track
|
||||
tagutil add:track="$track" $i
|
||||
echo "${title//_/ } by $artist as song $track on album $album tagged"
|
||||
else
|
||||
echo "${title//_/ } by $artist on album $album tagged"
|
||||
fi
|
||||
done
|
||||
echo ""
|
||||
cd ..
|
||||
done
|
||||
fi
|
||||
|
||||
cd && cd $HOME/Media/Music
|
||||
done
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rm /tmp/timer_daemon.sock
|
||||
oxt_daemon &>/dev/null & disown;
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# Spaghetti so dense you could bounce a dime off it
|
||||
if [[ $* =~ h ]]; then
|
||||
echo "=== Valid arguments ===" && echo "" && echo "h: Show this help." && echo "v: Verbose mode." && echo "r: Rebuild and reboot." && echo "g: Skip git pull."
|
||||
else
|
||||
if ! [[ $* =~ g ]]; then
|
||||
echo "Testing for git install..."
|
||||
if ! command -v git
|
||||
then
|
||||
echo "Git not installed. Using nix-shell to temporarily install git..."
|
||||
nix-shell -p git --command "cd $HOME && git clone https://github.com/morganmayday/dotfiles.git || echo 'Remove $HOME/dotfiles and try again'"
|
||||
exit 1
|
||||
elif command -v git
|
||||
then
|
||||
echo "Git found, pulling now." && cd $HOME && git clone https://github.com/morganmayday/dotfiles.git || echo 'Remove $HOME/dotfiles and try again.' && exit 1
|
||||
fi
|
||||
fi
|
||||
vAutomanaging="Automanaging "
|
||||
managedCount=0
|
||||
looseFileCount=0
|
||||
looseFolderCount=0
|
||||
if [[ $* =~ v ]]; then
|
||||
verbose=true
|
||||
vDirMan=" in $HOME/dotfiles/setup/managed"
|
||||
vDirLoose=" in $HOME/dotfiles/setup/loose"
|
||||
vHypr=" $HOME/.config/hypr/hyprland.conf to"
|
||||
vMako=" $HOME/.config/mako/config to"
|
||||
vAutomanaging="Overwriting preexisting config folders with provided folders: "
|
||||
vGTKDir=" in $HOME/local/share/themes"
|
||||
vGTKIDir=" in $HOME/local/share/icons"
|
||||
fi
|
||||
if [[ $* =~ r ]]; then
|
||||
skipRebuild=false
|
||||
fi
|
||||
echo "" && echo "" && echo "==== MAYDAY NIX SETUP SCRIPT V2.0 ====" && echo " Written by Morgan Mayday" && echo "" && echo "Initializing..." && echo ""
|
||||
cd $HOME
|
||||
|
||||
managed=`ls $HOME/dotfiles/setup/managed`
|
||||
managedCount=`ls -d $HOME/dotfiles/setup/managed/* | wc -l`
|
||||
loose=`ls -p $HOME/dotfiles/setup/loose`
|
||||
looseFileCount=`ls -d -p $HOME/dotfiles/setup/loose/* | grep -v '/$' | wc -l`
|
||||
looseFolderCount=`ls -d -p $HOME/dotfiles/setup/loose/* | grep '/$' | wc -l`
|
||||
echo "$vAutomanaging$managedCount folders$vDirMan"
|
||||
echo -n "[ "
|
||||
for i in $managed
|
||||
do
|
||||
cp -r -f $HOME/dotfiles/setup/managed/$i $HOME/.config/$i && echo -n "$i "
|
||||
done
|
||||
echo " ]" && echo "Written!" && echo ""
|
||||
echo "source = $HOME/dotfiles/hypr/index.conf" > "$HOME/.config/hypr/hyprland.conf" && echo "Linked$vHypr $HOME/dotfiles/hypr/index.conf"
|
||||
echo "include=config $HOME/dotfiles/hypr/mako" > "$HOME/.config/mako/config" && echo "Linked$vMako $HOME/dotfiles/hypr/mako"
|
||||
|
||||
echo "" && echo "$looseFolderCount folders $looseFileCount files loose, examine manually post-install."
|
||||
if [[ $verbose = true ]]; then
|
||||
echo "Loose:"
|
||||
for i in $loose
|
||||
do
|
||||
echo " $i"
|
||||
done
|
||||
fi
|
||||
echo "" && echo -n "Installing GTK theme$vGTKDir" && cp -r -f $HOME/dotfiles/setup/theme/ClassicPlatinumStreamlined $HOME/.local/share/themes && echo "...success"
|
||||
echo -n "Installing GTK icons$vGTKIDir" && cp -r -f $HOME/dotfiles/setup/theme/RetroismIcons $HOME/.local/share/icons && echo "...success"
|
||||
echo "" && echo "All operations completed. Safe to rebuild and reboot."
|
||||
if [[ $skipRebuild = false ]]; then
|
||||
echo "Prompting password for rebuild and reboot..."
|
||||
sudo nixos-rebuild switch --impure --flake $HOME/dotfiles#atlas && reboot
|
||||
fi
|
||||
fi
|
||||
1
scripts/working/glurp.sh
Executable file
1
scripts/working/glurp.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
grim -g "$(slurp)" - | wl-copy && wl-paste > ~/screenshots/glurp--$(date +%F_%T).png
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
git pull
|
||||
git add .
|
||||
git commit -am "Quick commit via qp.sh"
|
||||
git push
|
||||
Loading…
Add table
Add a link
Reference in a new issue