Compare commits
No commits in common. "105facdc7e6f2b16dd244576aae099cdb759702e" and "dc1e46e4a7ad4324bf579f74ac192045c62ede19" have entirely different histories.
105facdc7e
...
dc1e46e4a7
@ -70,20 +70,6 @@ FirstRun=False
|
|||||||
[NextCandidate]
|
[NextCandidate]
|
||||||
0=Tab
|
0=Tab
|
||||||
|
|
||||||
[CurrentCandidate]
|
|
||||||
0=space
|
|
||||||
1=KP_Space
|
|
||||||
|
|
||||||
[CommitRawInput]
|
|
||||||
0=Return
|
|
||||||
1=KP_Enter
|
|
||||||
2=Control+Return
|
|
||||||
3=Control+KP_Enter
|
|
||||||
4=Shift+Return
|
|
||||||
5=Shift+KP_Enter
|
|
||||||
6=Control+Shift+Return
|
|
||||||
7=Control+Shift+KP_Enter
|
|
||||||
|
|
||||||
[ChooseCharFromPhrase]
|
[ChooseCharFromPhrase]
|
||||||
0=bracketleft
|
0=bracketleft
|
||||||
1=bracketright
|
1=bracketright
|
||||||
|
25
home/default/scripts/append-urls-to-titles
Executable file
25
home/default/scripts/append-urls-to-titles
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
set -eou pipefail
|
||||||
|
|
||||||
|
# Old script to get json url for some reason? Don't know why I did this
|
||||||
|
# youtube-dl -j --flat-playlist -a - | \
|
||||||
|
# jq -r '.id' | \
|
||||||
|
# sed 's_^_https://youtu.be/_' | \
|
||||||
|
# wget-titles-from-urls >> titles.txt
|
||||||
|
|
||||||
|
test -f append.txt
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo No append.txt found! Cannot append
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -s append.txt ]]; then
|
||||||
|
echo append.txt is empty
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat append.txt | wget-titles-from-urls >> titles.txt
|
||||||
|
cat append.txt | youtube-audio
|
||||||
|
> append.txt
|
||||||
|
|
||||||
|
standardize-music
|
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
# record video
|
# record video
|
||||||
dir=~/Downloads/temp
|
dir=~/Downloads/temp
|
||||||
(cd $dir && wf-recorder -g "$(slurp)" -a alsa_output.pci-0000_0b_00.4.analog-stereo.monitor --file=$(date +%Y-%m-%d_%H-%m-%s).mp4)
|
(cd $dir && wf-recorder -g "$(slurp)" --audio --file=$(date +%Y-%m-%d_%H-%m-%s).mp4)
|
||||||
xdg-open $dir
|
xdg-open $dir
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
set -eou pipefail
|
set -eou pipefail
|
||||||
|
|
||||||
sudo mkdir -p /run/media/default
|
sudo mkdir -p /run/media/default/
|
||||||
|
if [[ ! -d /run/media/default/MUSIC ]]; then
|
||||||
echo "mounting /run/media/default/MUSIC"
|
echo "mounting /run/media/default/MUSIC"
|
||||||
sudo fsck -fy /dev/disk/by-uuid/E6F8-C183 || true
|
|
||||||
sudo mkdir /run/media/default/MUSIC
|
sudo mkdir /run/media/default/MUSIC
|
||||||
sudo mount -U E6F8-C183 /run/media/default/MUSIC
|
sudo mount -U E6F8-C183 /run/media/default/MUSIC
|
||||||
|
fi
|
||||||
|
|
||||||
echo "syncing music..."
|
echo "syncing music..."
|
||||||
sudo rsync --info=progress2 -W -r --delete ~/Music/* /run/media/default/MUSIC/
|
sudo rsync --info=progress2 -W -r --delete ~/Music/* /run/media/default/MUSIC/
|
||||||
sudo sync /run/media/default/MUSIC/
|
|
||||||
|
|
||||||
cd /run/media/default/MUSIC
|
cd /run/media/default/MUSIC
|
||||||
sudo generate-playlists
|
sudo generate-playlists
|
||||||
|
@ -1,16 +1,14 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
set -eou pipefail
|
set -eou pipefail
|
||||||
|
|
||||||
sudo mkdir -p /run/media/default
|
if [[ ! -d /run/media/default/MUSIC ]]; then
|
||||||
|
|
||||||
echo "mounting /run/media/default/MUSIC"
|
echo "mounting /run/media/default/MUSIC"
|
||||||
sudo fsck -fy /dev/disk/by-uuid/DB09-89C3
|
|
||||||
sudo mkdir /run/media/default/MUSIC
|
sudo mkdir /run/media/default/MUSIC
|
||||||
sudo mount -U DB09-89C3 /run/media/default/MUSIC
|
sudo mount -U DB09-89C3 /run/media/default/MUSIC
|
||||||
|
fi
|
||||||
|
|
||||||
echo "syncing music..."
|
echo "syncing music..."
|
||||||
sudo rsync --info=progress2 -W -r --delete ~/Music/* /run/media/default/MUSIC/
|
sudo rsync --info=progress2 -W -r --delete ~/Music/* /run/media/default/MUSIC/
|
||||||
sudo sync /run/media/default/MUSIC/
|
|
||||||
|
|
||||||
cd /run/media/default/MUSIC
|
cd /run/media/default/MUSIC
|
||||||
sudo generate-playlists
|
sudo generate-playlists
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eoux pipefail
|
set -eoux pipefail
|
||||||
|
|
||||||
system-free-space
|
system-prune-space
|
||||||
yay --noconfirm -Syu --overwrite \*
|
yay --noconfirm -Syu --overwrite \*
|
||||||
system-free-space
|
system-prune-space
|
||||||
|
Loading…
Reference in New Issue
Block a user