summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrafa_99 <raroma09@gmail.com>2021-09-26 23:18:00 +0100
committerrafa_99 <raroma09@gmail.com>2021-09-26 23:18:00 +0100
commit6872292618905546af8ce6b89589b45859cb137d (patch)
treee7aa9e352722544897fd8589918b859305f8dced
parent4d4511c99f179613dc6927f6791d26991294337a (diff)
Updated scripts and added sleep before initializing Xorg
-rwxr-xr-xscripts/.local/bin/yt2
-rwxr-xr-xshell/.config/shell/env7
2 files changed, 8 insertions, 1 deletions
diff --git a/scripts/.local/bin/yt b/scripts/.local/bin/yt
index 42e4732..4b620d7 100755
--- a/scripts/.local/bin/yt
+++ b/scripts/.local/bin/yt
@@ -3,5 +3,5 @@
VIDEO="https://www.youtube.com/watch?v=$(echo "<-" | dmenu -p "Youtube:" | xargs -I {} queryt -s "{}" | sed "s:\t: :g" | dmenu -l 10 -p "Video: " | awk '{print $1}')"
if [ "$VIDEO" != "" ]; then
- mpv --ytdl-format=22 "$VIDEO"
+ mpv "$VIDEO"
fi
diff --git a/shell/.config/shell/env b/shell/.config/shell/env
index 7e10864..5be4f6e 100755
--- a/shell/.config/shell/env
+++ b/shell/.config/shell/env
@@ -43,5 +43,12 @@ export SESSION=dwm
if ! pgrep Xorg > /dev/null
then
+ printf "Initializing Xorg\nPress Ctrl + C to stop the initialization process\n"
+ for ((i = 5; i >= 1; i--))
+ do
+ sleep 1
+ echo -n "$i "
+ done
+ echo ""
exec startx "$XINITRC"
fi