This file contains 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}" |
This file contains 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 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 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 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 | |
# show a cleaned-up output of lsusb periodically. requires usbutils. | |
watch --differences --no-title --interval 0.5 "lsusb | grep -vi 'root hub$'" | |
This file contains 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 | |
# mount ftp servers from a server list. | |
# i use it to mount my phone with the | |
# help of an ftp server android app. | |
# requires curlftpfs. | |
# config | |
hosts=~/.config/mftp/hosts | |
mntdir=~/Mount/FTP |
This file contains 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
A modified version of dwm's swallow patch that works with tmux. | |
Based on: https://dwm.suckless.org/patches/swallow/dwm-swallow-20201211-61bb8b2.diff | |
Hosted at: https://gist.github.com/soystemd/0ac35d048672c63d7fc3afb1fde4c5f2 | |
--- | |
diff --git a/config.def.h b/config.def.h | |
index a2ac963..f833d23 100644 | |
--- a/config.def.h | |
+++ b/config.def.h |
This file contains 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 mounts and opens any connected mtp devices while it's running. | |
# requires go-mtpfs, moreutils , fuse and udev. | |
# config | |
cache="${XDG_CACHE_HOME:-$HOME/.cache}/mtpd" | |
tmp="${XDG_RUNTIME_DIR:-/tmp}/mtpd" | |
main() | |
{ |
This file contains 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
-- lua code for generating a nice unicode progress bar. | |
-- author: Ehsan Ghorbannezhad <ehsan at disroot dot org> | |
-- input percentage | |
PERCENT = 96 | |
function round(n) | |
return math.floor(n+0.5) | |
end |
This file contains 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 | |
# download, configure and start the psiphon proxy client. | |
# requires curl, aria2, libnotify (optional). | |
# Config | |
# ========== | |
# ports | |
SOCKS_PORT=9050 | |
HTTP_PORT=8585 | |
# |
OlderNewer