Use /usr/bin/env * instead of /bin/* (#355)

This commit is contained in:
Nils ANDRÉ-CHANG 2019-08-06 13:30:12 +01:00 committed by Luke Smith
parent dcd68dac0d
commit ff0366fc7d
72 changed files with 72 additions and 72 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
stty -ixon # Disable ctrl-s and ctrl-q. stty -ixon # Disable ctrl-s and ctrl-q.
shopt -s autocd #Allows you to cd into directory merely by typing the directory name. shopt -s autocd #Allows you to cd into directory merely by typing the directory name.
HISTSIZE= HISTFILESIZE= # Infinite history. HISTSIZE= HISTFILESIZE= # Infinite history.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
alias ka="killall" \ alias ka="killall" \
mkd="mkdir -pv" \ mkd="mkdir -pv" \
mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \ mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
while read file while read file
do do
case "$1" in case "$1" in

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Syncs repositories and downloads updates, meant to be run as a cronjob. # Syncs repositories and downloads updates, meant to be run as a cronjob.
ping -q -c 1 1.1.1.1 > /dev/null || exit ping -q -c 1 1.1.1.1 > /dev/null || exit

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Notify me with notify-send if my battery is below 25%. # Notify me with notify-send if my battery is below 25%.
# You can set this to run via cron. # You can set this to run via cron.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Toggles all cronjobs off/on. # Toggles all cronjobs off/on.
# Stores disabled crontabs in ~/.consaved until restored. # Stores disabled crontabs in ~/.consaved until restored.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Set as a cron job to check for new RSS entries for newsboat. # Set as a cron job to check for new RSS entries for newsboat.
# If newsboat is open, sends it an "R" key to refresh. # If newsboat is open, sends it an "R" key to refresh.

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Dependencies are xclip and xorg-xprop. # Dependencies are xclip and xorg-xprop.
# qrencode required for qrcode generation. # qrencode required for qrcode generation.
# groff/zathura required for man pages. # groff/zathura required for man pages.

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/usr/bin/env sh
pkill -f /dev/video || mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --geometry=-0-0 --autofit=30% --title="mpvfloat" /dev/video0 pkill -f /dev/video || mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --geometry=-0-0 --autofit=30% --title="mpvfloat" /dev/video0

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Toggle floating dropdown terminal in i3, or start if non-existing. # Toggle floating dropdown terminal in i3, or start if non-existing.
# $1 is the script run in the terminal. # $1 is the script run in the terminal.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# A UI for detecting and selecting all displays. # A UI for detecting and selecting all displays.
# Probes xrandr for connected displays and lets user select one to use. # Probes xrandr for connected displays and lets user select one to use.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Gives a dmenu prompt to mount unmounted drives. # Gives a dmenu prompt to mount unmounted drives.
# If they're in /etc/fstab, they'll be mounted automatically. # If they're in /etc/fstab, they'll be mounted automatically.
# Otherwise, you'll be prompted to give a mountpoint from already existsing directories. # Otherwise, you'll be prompted to give a mountpoint from already existsing directories.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Usage: # Usage:
# `record`: Ask for recording type via dmenu # `record`: Ask for recording type via dmenu

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# A dmenu prompt to unmount drives. # A dmenu prompt to unmount drives.
# Provides you with mounted partitions, select one to unmount. # Provides you with mounted partitions, select one to unmount.
# Drives mounted at /, /boot and /home will not be options to unmount. # Drives mounted at /, /boot and /home will not be options to unmount.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Give dmenu list of all unicode characters to copy. # Give dmenu list of all unicode characters to copy.
# Shows the selected character in dunst if running. # Shows the selected character in dunst if running.

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/usr/bin/env sh
ifinstalled bc && echo "Welcome to the Calculator." && bc -lq ifinstalled bc && echo "Welcome to the Calculator." && bc -lq

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Gives a dmenu prompt to search DuckDuckGo. # Gives a dmenu prompt to search DuckDuckGo.
# Without input, will open DuckDuckGo.com. # Without input, will open DuckDuckGo.com.
# URLs will be directly handed to the browser. # URLs will be directly handed to the browser.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
[ -z "$1" ] && exit # If $1 is left, hovers in the bottom left, if right, the bottom right [ -z "$1" ] && exit # If $1 is left, hovers in the bottom left, if right, the bottom right
current=$(xdotool getwindowfocus) current=$(xdotool getwindowfocus)
newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3)) newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3))

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# This script was made by `goferito` on Github. # This script was made by `goferito` on Github.
# Some cleanup by Luke. # Some cleanup by Luke.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
kill -9 "$(cat ~/.recordingpid)" kill -9 "$(cat ~/.recordingpid)"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in
"a selected area") maim -s pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;; "a selected area") maim -s pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;;
"current window") maim -i "$(xdotool getactivewindow)" pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;; "current window") maim -i "$(xdotool getactivewindow)" pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;;

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# A dmenu binary prompt script. # A dmenu binary prompt script.
# Gives a dmenu prompt labeled with $1 to perform command $2. # Gives a dmenu prompt labeled with $1 to perform command $2.
# For example: # For example:

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
PID=$(xprop -id "$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')" | grep -m 1 PID | cut -d " " -f 3) PID=$(xprop -id "$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')" | grep -m 1 PID | cut -d " " -f 3)
PID=$(echo "$(pstree -lpA "$PID" | tail -n 1)" | awk -F'---' '{print $NF}' | sed -re 's/[^0-9]//g') PID=$(echo "$(pstree -lpA "$PID" | tail -n 1)" | awk -F'---' '{print $NF}' | sed -re 's/[^0-9]//g')
cd "$(readlink /proc/"$PID"/cwd)" cd "$(readlink /proc/"$PID"/cwd)"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Display contents of selection via dunst if running. # Display contents of selection via dunst if running.
# Separate script for i3. # Separate script for i3.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# If transmission-daemon is running, will ask to kill, else will ask to start. # If transmission-daemon is running, will ask to kill, else will ask to start.
if pgrep -x transmission-da >/dev/null ; if pgrep -x transmission-da >/dev/null ;
then then

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# This is the script that i3 runs to either start tmux in # This is the script that i3 runs to either start tmux in
# the dropdown terminal or log into a previous session. # the dropdown terminal or log into a previous session.
tmux a || tmux tmux a || tmux

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Toggle touchpad. Requires xf86-input-synaptics. # Toggle touchpad. Requires xf86-input-synaptics.
(synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && echo "TouchPad reactivated." && exit (synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && echo "TouchPad reactivated." && exit
synclient TouchpadOff=1 && echo "TouchPad deactivated." synclient TouchpadOff=1 && echo "TouchPad deactivated."

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
ifinstalled transmission-remote-cli transmission-cli || exit ifinstalled transmission-remote-cli transmission-cli || exit
! pgrep -x transmission-da >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 i3blocks ! pgrep -x transmission-da >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 i3blocks

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
vidlist=" vidlist="
status bar https://www.youtube.com/watch?v=gKumet6b-WY status bar https://www.youtube.com/watch?v=gKumet6b-WY
sxiv (image viewer) https://www.youtube.com/watch?v=GYW9i_u5PYs sxiv (image viewer) https://www.youtube.com/watch?v=GYW9i_u5PYs

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/usr/bin/env sh
echo "📐" | dmenu -p "Give width and height:" | xargs xdotool windowsize "$(xdotool getwindowfocus)" echo "📐" | dmenu -p "Give width and height:" | xargs xdotool windowsize "$(xdotool getwindowfocus)"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Give a battery name (e.g. BAT0) as an argument. # Give a battery name (e.g. BAT0) as an argument.
case $BLOCK_BUTTON in case $BLOCK_BUTTON in

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
date '+%Y %b %d (%a) %I:%M%p' date '+%Y %b %d (%a) %I:%M%p'

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
1) notify-send "🖥 CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;; 1) notify-send "🖥 CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;;

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Status bar module for disk space # Status bar module for disk space
# $1 should be drive mountpoint # $1 should be drive mountpoint

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
1) groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura - ;; 1) groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura - ;;
2) i3 restart ;; 2) i3 restart ;;

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
1) $TERMINAL -e nmtui ;; 1) $TERMINAL -e nmtui ;;

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Gets your public ip address checks which country you are in and # Gets your public ip address checks which country you are in and
# displays that information in the statusbar # displays that information in the statusbar

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# i3blocks mail module. # i3blocks mail module.
# Displays number of unread mail and an loading icon if updating. # Displays number of unread mail and an loading icon if updating.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
1) notify-send "🧠 Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;; 1) notify-send "🧠 Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Whenever the mpd state changes, update the mpd i3 module. # Whenever the mpd state changes, update the mpd i3 module.
kill -0 "$(cat /tmp/mpdupdate)" 2>/dev/null && exit || echo $$ > /tmp/mpdupdate kill -0 "$(cat /tmp/mpdupdate)" 2>/dev/null && exit || echo $$ > /tmp/mpdupdate

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
filter() { filter() {
sed "/^volume:/d" | tac | sed -e "s/\\&/&amp;/g;s/\\[paused\\].*/<span color=\"gray\" font_style=\"italic\">/g;s/\\[playing\\].*/<span>/g" | tr -d '\n' | sed -e "s/$/<\\/span>/g" sed "/^volume:/d" | tac | sed -e "s/\\&/&amp;/g;s/\\[paused\\].*/<span color=\"gray\" font_style=\"italic\">/g;s/\\[playing\\].*/<span>/g" | tr -d '\n' | sed -e "s/$/<\\/span>/g"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# i3blocks newsboat module. # i3blocks newsboat module.
# Displays number of unread news items and an loading icon if updating. # Displays number of unread news items and an loading icon if updating.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# i3blocks module for pacman upgrades. # i3blocks module for pacman upgrades.
# Displays number of upgradeable packages. # Displays number of upgradeable packages.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
printf "Beginning upgrade.\\n" printf "Beginning upgrade.\\n"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
transmission-remote -l | grep % | transmission-remote -l | grep % |
sed " # This first sed command is to ensure a desirable order with sort sed " # This first sed command is to ensure a desirable order with sort

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
1) setsid "$TERMINAL" -e pulsemixer & ;; 1) setsid "$TERMINAL" -e pulsemixer & ;;

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
location="$1"; [ -z "$location" ] || { location="$location+" && rm -f "$HOME/.local/share/weatherreport" ;} location="$1"; [ -z "$location" ] || { location="$location+" && rm -f "$HOME/.local/share/weatherreport" ;}
getforecast() { ping -q -c 1 1.1.1.1 >/dev/null || exit 1 getforecast() { ping -q -c 1 1.1.1.1 >/dev/null || exit 1

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# This script will compile or run another finishing operation on a document. I # This script will compile or run another finishing operation on a document. I
# have this script run via vim. # have this script run via vim.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Feed this script a link and it will give dmenu # Feed this script a link and it will give dmenu
# some choice programs to use to open it. # some choice programs to use to open it.

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/usr/bin/env sh
dmenu -fn Monospace-18 -sb "#d79921" -sf "#1d2021" -nf "#000000" -nb "#000000" -p "$1" <&- && echo dmenu -fn Monospace-18 -sb "#d79921" -sf "#1d2021" -nf "#000000" -nb "#000000" -p "$1" <&- && echo

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# A general, all-purpose extraction script. # A general, all-purpose extraction script.
# #
# Default behavior: Extract archive into new directory # Default behavior: Extract archive into new directory

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
[ -z "$1" ] && echo "Give either a pdf file or a DOI as an argument." && exit [ -z "$1" ] && echo "Give either a pdf file or a DOI as an argument." && exit
if [ -f "$1" ]; then if [ -f "$1" ]; then

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
cat ~/.config/getkeys/"$1" 2>/dev/null && exit cat ~/.config/getkeys/"$1" 2>/dev/null && exit
echo "Run command with one of the following arguments for info about that program:" echo "Run command with one of the following arguments for info about that program:"
ls ~/.config/getkeys ls ~/.config/getkeys

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/usr/bin/env sh
# If $1 command is not available, error code and notify. # If $1 command is not available, error code and notify.
command -v "$1" >/dev/null || { notify-send "📦 $1" "must be installed for this function." && exit 1 ;} command -v "$1" >/dev/null || { notify-send "📦 $1" "must be installed for this function." && exit 1 ;}

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Feed script a url or file location. # Feed script a url or file location.
# If an image, it will view in sxiv, # If an image, it will view in sxiv,

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# A general audio interface for LARBS. # A general audio interface for LARBS.
[ -z "$2" ] && num="2" || num="$2" [ -z "$2" ] && num="2" || num="$2"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# opout: "open output": A general handler for opening a file's intended output. # opout: "open output": A general handler for opening a file's intended output.
# I find this useful especially running from vim. # I find this useful especially running from vim.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
for i in $(ls /tmp/mpvsoc*); do for i in $(ls /tmp/mpvsoc*); do
echo '{ "command": ["set_property", "pause", true] }' | socat - $i; echo '{ "command": ["set_property", "pause", true] }' | socat - $i;
done done

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# entr command to run `queueandnotify` when newsboat queue is changed # entr command to run `queueandnotify` when newsboat queue is changed
[ "$(pgrep -x $(basename $0) | wc -l)" -gt 2 ] && exit [ "$(pgrep -x $(basename $0) | wc -l)" -gt 2 ] && exit

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# $1 is a url; $2 is a command # $1 is a url; $2 is a command
[ -z "$1" ] && exit [ -z "$1" ] && exit
base="$(basename "$1")" base="$(basename "$1")"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Podboat sucks. This script replaces it. # Podboat sucks. This script replaces it.
# It reads the newsboat queue, queuing downloads with taskspooler. # It reads the newsboat queue, queuing downloads with taskspooler.
# It also removes the junk from extentions. # It also removes the junk from extentions.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# This script is called by i3 on startup to remap keys. # This script is called by i3 on startup to remap keys.
# Increase key speed via a rate change # Increase key speed via a rate change
xset r rate 300 50 xset r rate 300 50

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
[ -z "$1" ] && echo "usage: rotdir regex 2>&1" && exit 1 [ -z "$1" ] && echo "usage: rotdir regex 2>&1" && exit 1
base="$(basename $1)" base="$(basename $1)"
ls "$PWD" | awk "BEGIN { lines = \"\"; m = 0; } /^$base$/ { m = 1; } { if (!m) { if (lines) { lines = lines\"\n\"; } lines = lines\"\"\$0; } else { print \$0; } } END { print lines; }" ls "$PWD" | awk "BEGIN { lines = \"\"; m = 0; } /^$base$/ { m = 1; } { if (!m) { if (lines) { lines = lines\"\n\"; } lines = lines\"\"\$0; } else { print \$0; } } END { print lines; }"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null && ! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null &&
notify-send "That doesn't look like a full URL." && exit notify-send "That doesn't look like a full URL." && exit
RSSFILE="$HOME/.config/newsboat/urls" RSSFILE="$HOME/.config/newsboat/urls"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Sets the background. If given an argument, will set file as background. # Sets the background. If given an argument, will set file as background.
[ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." [ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed."
xwallpaper --zoom ~/.config/wall.png xwallpaper --zoom ~/.config/wall.png

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Output locations. Unactivated progs should go to /dev/null. # Output locations. Unactivated progs should go to /dev/null.
shell_shortcuts="$HOME/.config/shortcutrc" shell_shortcuts="$HOME/.config/shortcutrc"
ranger_shortcuts="/dev/null" ranger_shortcuts="/dev/null"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Clears the build files of a LaTeX/XeLaTeX build. # Clears the build files of a LaTeX/XeLaTeX build.
# I have vim run this file whenever I exit a .tex file. # I have vim run this file whenever I exit a .tex file.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Mimeapp script for adding torrent to transmission-daemon, but will also start the daemon first if not running. # Mimeapp script for adding torrent to transmission-daemon, but will also start the daemon first if not running.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
#original artwork by http://www.sanderfocus.nl/#/portfolio/tech-heroes #original artwork by http://www.sanderfocus.nl/#/portfolio/tech-heroes
#converted to shell by #nixers @ irc.unix.chat #converted to shell by #nixers @ irc.unix.chat

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Profile file. Runs on login. # Profile file. Runs on login.
# Adds `~/.local/bin/` and all subdirectories to $PATH # Adds `~/.local/bin/` and all subdirectories to $PATH

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
[ -f "$HOME/.xprofile" ] && . ~/.xprofile [ -f "$HOME/.xprofile" ] && . ~/.xprofile

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
setbg & # Set the background setbg & # Set the background
sxhkd & # Bind keys sxhkd & # Bind keys