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
#!/bin/sh | |
clear -x; tput civis # hide cursor | |
mpv \ | |
--audio-display=no --term-osd-bar --force-window=no \ | |
--keep-open=yes --display-tags-clr --term-title='mpv' \ | |
--msg-level=cplayer=error,ffmpeg=fatal,ffmpeg/demuxer=error \ | |
--term-status-msg='File: ${filename}\n\nTitle: ${metadata/by-key/title}\nArtist: ${metadata/by-key/artist}\nAlbum: ${metadata/by-key/album}\n\n${!playlist-count==1:Playing ${playlist-pos-1}/${playlist-count}\n}${?pause==yes:(Paused) }${time-pos} / ${duration}' \ | |
--term-osd-bar-chars='[-> ]' "$@" | |
tput cnorm # cursor back to normal |
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
#!/bin/bash | |
# access the storage of android devices | |
# through adb via adbfs. | |
# requires adbfs-rootless. | |
# config | |
mnt=~/Mount/ADB | |
main () { | |
while true; do |
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
#!/bin/sh | |
# soystemd 2021-04-10 (https://github.com/soystemd) | |
# sets a video or gif as your wallpaper. | |
# requires mpv, xwinwrap and xrandr. | |
# to kill the live wallpaper, just run this with no arguments. | |
# | |
# example: | |
# $ live video.mp4 | |
# | |
# for killing: |
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
#!/bin/sh | |
# this script looks for connected android or MTP devices | |
# for 30 seconds, and mounts them when connected. | |
# if any device is already mounted, it just opens them. | |
# requires simple-mtpfs(1). | |
# config | |
mnt=~/Mount/MTP | |
file_manager="${FILE:-xdg-open}" |
NewerOlder