Compare commits

...

3 commits

8 changed files with 154 additions and 13 deletions

18
flake.lock generated
View file

@ -20,11 +20,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1769302137,
"narHash": "sha256-QEDtctEkOsbx8nlFh4yqPEOtr4tif6KTqWwJ37IM2ds=",
"lastModified": 1771423359,
"narHash": "sha256-yRKJ7gpVmXbX2ZcA8nFi6CMPkJXZGjie2unsiMzj3Ig=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "a351494b0e35fd7c0b7a1aae82f0afddf4907aa8",
"rev": "740a22363033e9f1bb6270fbfb5a9574067af15b",
"type": "github"
},
"original": {
@ -36,11 +36,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1770197578,
"narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
"lastModified": 1771369470,
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
"rev": "0182a361324364ae3f436a63005877674cf45efb",
"type": "github"
},
"original": {
@ -51,11 +51,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1770136044,
"narHash": "sha256-tlFqNG/uzz2++aAmn4v8J0vAkV3z7XngeIIB3rM3650=",
"lastModified": 1771419570,
"narHash": "sha256-bxAlQgre3pcQcaRUm/8A0v/X8d2nhfraWSFqVmMcBcU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e576e3c9cf9bad747afcddd9e34f51d18c855b4e",
"rev": "6d41bc27aaf7b6a3ba6b169db3bd5d6159cfaa47",
"type": "github"
},
"original": {

View file

@ -13,8 +13,8 @@ bind = $mainMod, D, exec, $DOTFILES_DIR/hypr/scripts/nav/h-scroll.sh m+1
# bind = $mainMod, S, exec, $SCRIPTS_DIR/hypr/nav/v-scroll.sh desktop
# bind = $mainMod $terMod, S, movetoworkspacesilent, special:desktop
bind = $mainMod, TAB, exec, $DOTFILES_DIR/hypr/scripts/nav/open.sh empty
bind = $mainMod $auxMod, TAB, exec, $DOTFILES_DIR/hypr/scripts/nav/mt.sh empty
bind = $mainMod, TAB, exec, $DOTFILES_DIR/hypr/scripts/nav/open.sh emptynm
bind = $mainMod $auxMod, TAB, exec, $DOTFILES_DIR/hypr/scripts/nav/mt.sh emptynm
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, exec, $DOTFILES_DIR/hypr/scripts/nav/open.sh 1

View file

@ -1,6 +1,7 @@
exec-once = nm-applet
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-2
exec-once = udiskie
exec-once = $DOTFILES_DIR/hypr/scripts/handle-second-monitor.sh
# exec-once = oxt_daemon
# exec-once = oxt-fix
# exec-once = eww daemon --force-wayland -c $DOTFILES_DIR/hypr/eww

View file

@ -0,0 +1,17 @@
#!/bin/sh
handle() {
case $1 in monitoradded*)
hyprctl dispatch moveworkspacetomonitor "1 DP-2"
hyprctl dispatch moveworkspacetomonitor "2 DP-2"
hyprctl dispatch moveworkspacetomonitor "3 DP-2"
hyprctl dispatch moveworkspacetomonitor "4 DP-2"
hyprctl dispatch moveworkspacetomonitor "5 DP-2"
hyprctl dispatch moveworkspacetomonitor "6 DP-2"
hyprctl dispatch moveworkspacetomonitor "7 DP-2"
hyprctl dispatch moveworkspacetomonitor "8 DP-2"
hyprctl dispatch moveworkspacetomonitor "9 DP-2"
esac
}
socat - "UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/${HYPRLAND_INSTANCE_SIGNATURE}/.socket2.sock" | while read -r line; do handle "$line"; done

View file

@ -1,3 +1,6 @@
#!/bin/sh
hyprctl dispatch movetoworkspacesilent $1
hyprctl dispatch workspace $1
# if [[ $1 =~ emptynm ]]; then
# hyprctl dispatch movetoworkspacesilent emptynm
# else
hyprctl dispatch movetoworkspace $1
# hyprctl dispatch workspace $1

View file

@ -48,6 +48,7 @@
wl-clipboard
#### COMMS ####
signal-desktop
element-desktop
#### WEBMASTER ####
hugo # site formatter/host/agent/thingy
#### MEDIA READING ####
@ -57,6 +58,7 @@
youtube-tui
mpv
#### MEDIA PROCESSING ####
handbrake # dvd stuff
yt-dlp
ytdl-sub # subs dl from youtube
deno # yt-dlp dependency

59
scripts/stable/metag Executable file
View file

@ -0,0 +1,59 @@
#!/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 ""

59
scripts/working/metag.sh Executable file
View file

@ -0,0 +1,59 @@
#!/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 ""