Script for downloading a music playlist from YouTube. You will need yt-dlp
installed
on your computer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ov = mp.create_osd_overlay('ass-events') | |
ov.data = "{\\fs72}{\\an5}一時停止!!" -- You can literally put whatever pause text you want in here. | |
-- {\\fs72} sets font size to 72. | |
-- {\\an5} puts the text in the center of the screen. | |
mp.observe_property('pause', 'bool', function(_, paused) | |
if paused then ov:update() | |
else ov:remove() end | |
end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
network_name="wifi network name here" | |
notify-send "Autorecon started" | |
while true; do | |
if ! ping -c 2 google.com; then | |
notify-send "Network not networking, reconnect" | |
nmcli con up "$network_name" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Change Wallpaper Service | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash -c 'DISPLAY=:0 XAUTHORITY=/home/YOUR_USERNAME/.Xauthority /usr/bin/feh --bg-fill --randomize "/WALLPAPER_FOLDER/$(ls /WALLPAPER_FOLDER/ | shuf -n 1)"' |