vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit ad66171f783bbad8d9ffbcce244eb01a0a6af759
parent b4a739e2059a6aca83294012fe42cf8fa59ba3a4
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 28 Oct 2019 11:17:00 +0300

change to /usr/bin/env, thanks to Juan Antonio

Diffstat:
M.local/bin/bug | 2+-
M.local/bin/checkdwm | 2+-
M.local/bin/checksunset | 2+-
M.local/bin/checktoday | 2+-
M.local/bin/dmenumount | 2+-
M.local/bin/dmenuresources | 2+-
M.local/bin/dmenuumount | 2+-
M.local/bin/dpass | 2+-
M.local/bin/dwatch | 2+-
M.local/bin/editstdout | 2+-
M.local/bin/getmpd | 2+-
M.local/bin/gmks | 2+-
M.local/bin/irc | 2+-
M.local/bin/lockme | 2+-
M.local/bin/mpctoggle | 2+-
M.local/bin/nightmodecheck | 2+-
M.local/bin/nightmodetoggle | 2+-
M.local/bin/nlr | 2+-
M.local/bin/powercheck | 2+-
M.local/bin/readthedocs | 2+-
M.local/bin/sdmenu | 2+-
M.local/bin/st-copyout | 2+-
M.local/bin/startdwm | 2+-
M.local/bin/todo | 2+-
M.local/bin/todoadd | 2+-
M.local/bin/todorm | 2+-
M.local/bin/updot | 2+-
M.local/bin/wallset | 2+-
M.local/bin/yousure | 2+-
M.local/bin/yousurereb | 2+-
30 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/.local/bin/bug b/.local/bin/bug @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # (encoding: UTF-8) # # bug 1.1 - Simple Bug / ToDo tracker for the command line. diff --git a/.local/bin/checkdwm b/.local/bin/checkdwm @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh csum=$(sha1sum $(which dwm)) new_csum="" while true diff --git a/.local/bin/checksunset b/.local/bin/checksunset @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ! [ -e $HOME/.config/sunsetrc ] && printf "LAT=\nLON=\n" > $HOME/.config/sunsetrc . $HOME/.config/sunsetrc diff --git a/.local/bin/checktoday b/.local/bin/checktoday @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh COMM=$(calcurse --appointment) diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Cem Keylan's modification of Luke's dmenumount script # I have 3 Arch systems on my computer so I usually won't be # mounting my hard drive partitions. Thus, I disabled '/dev/nvme0n1' and '/dev/sda'. diff --git a/.local/bin/dmenuresources b/.local/bin/dmenuresources @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # User chooses between dark and light themes theme="$(printf "dark\nlight" | dmenu -p "Do you want a light theme or a night theme?")" diff --git a/.local/bin/dmenuumount b/.local/bin/dmenuumount @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # A dmenu prompt to unmount drives. # Provides you with mounted partitions, select one to unmount. # Drives mounted at /, /boot and /home will not be options to unmount. diff --git a/.local/bin/dpass b/.local/bin/dpass @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh dmenu -P -p "$1" <&- && echo diff --git a/.local/bin/dwatch b/.local/bin/dwatch @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh VID=$(ls $HOME/.watchlater | dmenu -l 30 -p "What will you watch") if [ "$VID" = "" ] diff --git a/.local/bin/editstdout b/.local/bin/editstdout @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh . $HOME/.profile tmpfile=$(mktemp /tmp/st-edit.XXXXXX) trap 'rm "$tmpfile"' 0 1 15 diff --git a/.local/bin/getmpd b/.local/bin/getmpd @@ -1,3 +1,3 @@ -#!/bin/sh +#!/usr/bin/env sh # Stolen from Luke Smith mpc -f "[[%artist% - ]%title%]|[%file%]" 2>/dev/null | grep -v "volume:" | head -n 1 diff --git a/.local/bin/gmks b/.local/bin/gmks @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh st -t Gomuks -e /bin/sh -c gomuks diff --git a/.local/bin/irc b/.local/bin/irc @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh DEFHOST="irc.oftc.net" DEFPORT="6667" diff --git a/.local/bin/lockme b/.local/bin/lockme @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh REALNAME="$(getent passwd $USER | cut -d ':' -f 5)" [ -z "$REALNAME" ] && REALNAME=$USER diff --git a/.local/bin/mpctoggle b/.local/bin/mpctoggle @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh answer="$(mpc)" case $answer in diff --git a/.local/bin/nightmodecheck b/.local/bin/nightmodecheck @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh if [ -e $HOME/.night ] then diff --git a/.local/bin/nightmodetoggle b/.local/bin/nightmodetoggle @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh if [ -e $HOME/.night ] then diff --git a/.local/bin/nlr b/.local/bin/nlr @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Next Logon Reminder - a very simple utility to get a reminder the next time you login. # i3 runs this script everytime you login, but you could also add it to your .xinitrc diff --git a/.local/bin/powercheck b/.local/bin/powercheck @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh while : do ! [ $(cat /sys/class/power_supply/BAT?/status) = "Charging" ] && [ $(cat /sys/class/power_supply/BAT?/capacity) -lt 25 ] && notify-send -u critical "Battery Status" "Your battery is low, please connect to a charger" diff --git a/.local/bin/readthedocs b/.local/bin/readthedocs @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh zathura $HOME/.local/share/carbs/carbs.pdf diff --git a/.local/bin/sdmenu b/.local/bin/sdmenu @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh choice="$(printf "Suspend\nShutdown\nReboot" | dmenu -l 3 -p "Power Menu")" diff --git a/.local/bin/st-copyout b/.local/bin/st-copyout @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Using external pipe with st, give a dmenu prompt of recent commands, # allowing the user to copy the output of one. # xclip required for this script. diff --git a/.local/bin/startdwm b/.local/bin/startdwm @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh while true; do dwm 2> ~/.dwm.log done diff --git a/.local/bin/todo b/.local/bin/todo @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh if ! [ "$(calcurse --version 2>/dev/null)" ] then diff --git a/.local/bin/todoadd b/.local/bin/todoadd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Add to todo.txt file diff --git a/.local/bin/todorm b/.local/bin/todorm @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh if [ -z $(pacman -T calcurse) ] then diff --git a/.local/bin/updot b/.local/bin/updot @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash out() { printf "$1 $2\n" "${@:3}"; } error() { out "==> ERROR:" "$@"; } >&2 diff --git a/.local/bin/wallset b/.local/bin/wallset @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Dmenu Script to change wallpaper if [ $(tail -n -1 $HOME/.night) = "NIGHT=1" ] diff --git a/.local/bin/yousure b/.local/bin/yousure @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh if [ $(printf 'No\nYes' | dmenu -p 'Are you sure you want to shutdown?') = 'Yes' ] then diff --git a/.local/bin/yousurereb b/.local/bin/yousurereb @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh if [ $(printf 'No\nYes' | dmenu -p 'Are you sure you want to reboot?') = 'Yes' ] then