scripts
scripts copied to clipboard
Messing around with shell scripting because it seems like fun, maybe you'll find something useful
So, the user can approve or change the current name instead of having to enter the full name himself. NOTE: Change script execution environment, Bash version ~> 4.0 required.
So that the script can work with files with spaces and other special characters in the path.
useful changes
you have defined a shortcut in your i3 config and have a readme entry for "mntandroid", but the script is not in your repo. is the script really missing, as...
When exiting the $url dmenu prompt with e.g. , one would be prompted with the search dmenu anyways. This addition checks whether the second dmenu is even necessary.
This works for me: #!/bin/sh set -e thumb=$(playerctl metadata --format '{{lc(mpris:artUrl)}}') song=$(playerctl metadata --format "Title: {{ title }}\nArtist: {{ artist }}\nAlbum: {{ album }}") convert "$thumb" -flatten -thumbnail 256x256 /home/dboneham/.icons/target...
I noticed a number of these scripts are marked as `#!/bin/sh`, but still have some bashisms. I was running some on my system where I have `sh` linked to `dash`...