diff options
author | tdro <tdro@users.noreply.github.com> | 2020-01-13 01:42:22 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-01-13 01:42:22 -0500 |
commit | 9cc1dd6df268757e0a6b3de0f14bc72d6f2627b4 (patch) | |
tree | 88d2a95e10bd276dbc0fd4532a8f1ed41f0558fb /.config/awesome | |
parent | 349add8a60cd61a33e87577f983b4c1e1b5fe06d (diff) | |
download | dotfiles-9cc1dd6df268757e0a6b3de0f14bc72d6f2627b4.tar.gz dotfiles-9cc1dd6df268757e0a6b3de0f14bc72d6f2627b4.tar.bz2 dotfiles-9cc1dd6df268757e0a6b3de0f14bc72d6f2627b4.zip |
.config/awesome/scripts: Use POSIX absolute path where possible
Diffstat (limited to '.config/awesome')
-rwxr-xr-x | .config/awesome/scripts/amixer | 8 | ||||
-rwxr-xr-x | .config/awesome/scripts/app-launcher | 2 | ||||
-rwxr-xr-x | .config/awesome/scripts/app-launcher-priv | 2 | ||||
-rwxr-xr-x | .config/awesome/scripts/atexit | 2 | ||||
-rwxr-xr-x | .config/awesome/scripts/clipboard-toggle | 2 | ||||
-rwxr-xr-x | .config/awesome/scripts/file-search | 2 | ||||
-rwxr-xr-x | .config/awesome/scripts/internet-search | 2 | ||||
-rwxr-xr-x | .config/awesome/scripts/lockscreen | 2 | ||||
-rwxr-xr-x | .config/awesome/scripts/powerdialog | 2 | ||||
-rwxr-xr-x | .config/awesome/scripts/snipping-tool | 2 | ||||
-rwxr-xr-x | .config/awesome/scripts/switch-monitor | 4 | ||||
-rwxr-xr-x | .config/awesome/scripts/volume-down | 4 | ||||
-rwxr-xr-x | .config/awesome/scripts/volume-mute | 4 | ||||
-rwxr-xr-x | .config/awesome/scripts/volume-up | 4 | ||||
-rwxr-xr-x | .config/awesome/scripts/window-switcher | 4 |
15 files changed, 22 insertions, 24 deletions
diff --git a/.config/awesome/scripts/amixer b/.config/awesome/scripts/amixer index 9148f22..a4ea1a3 100755 --- a/.config/awesome/scripts/amixer +++ b/.config/awesome/scripts/amixer @@ -1,5 +1,5 @@ -#!/usr/bin/env bash +#!/bin/sh -[[ "$1" == "up" ]] && amixer set Master 1%+ -[[ "$1" == "down" ]] && amixer set Master 1%- -[[ "$1" == "mute" ]] && amixer sset Master toggle +[ "$1" = "up" ] && amixer set Master 1%+ +[ "$1" = "down" ] && amixer set Master 1%- +[ "$1" = "mute" ] && amixer sset Master toggle diff --git a/.config/awesome/scripts/app-launcher b/.config/awesome/scripts/app-launcher index d3cbad6..b893c3b 100755 --- a/.config/awesome/scripts/app-launcher +++ b/.config/awesome/scripts/app-launcher @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh PATH="$PATH:$HOME/.local/bin"; rofi -fullscreen -show run -display-run "$" -font "ubuntu 12" -padding 300; diff --git a/.config/awesome/scripts/app-launcher-priv b/.config/awesome/scripts/app-launcher-priv index 9bc0264..f59bd5b 100755 --- a/.config/awesome/scripts/app-launcher-priv +++ b/.config/awesome/scripts/app-launcher-priv @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh PATH="$PATH:$HOME/.local/bin"; rofi -fullscreen -show run -display-run "#" -run-command 'gksudo {cmd}' -font "ubuntu 12" -padding 300; diff --git a/.config/awesome/scripts/atexit b/.config/awesome/scripts/atexit index 0617957..1a24852 100755 --- a/.config/awesome/scripts/atexit +++ b/.config/awesome/scripts/atexit @@ -1 +1 @@ -#!/usr/bin/env sh +#!/bin/sh diff --git a/.config/awesome/scripts/clipboard-toggle b/.config/awesome/scripts/clipboard-toggle index b49aa86..a1938c9 100755 --- a/.config/awesome/scripts/clipboard-toggle +++ b/.config/awesome/scripts/clipboard-toggle @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh ps cax | grep copyq > /dev/null if [ $? -eq 0 ]; then diff --git a/.config/awesome/scripts/file-search b/.config/awesome/scripts/file-search index 13dec55..3939f7f 100755 --- a/.config/awesome/scripts/file-search +++ b/.config/awesome/scripts/file-search @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh xdg-open "$(locate -ie \ \ diff --git a/.config/awesome/scripts/internet-search b/.config/awesome/scripts/internet-search index ef2d429..5020ce6 100755 --- a/.config/awesome/scripts/internet-search +++ b/.config/awesome/scripts/internet-search @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh export BROWSER=/usr/bin/firefox; diff --git a/.config/awesome/scripts/lockscreen b/.config/awesome/scripts/lockscreen index 8753876..7670f96 100755 --- a/.config/awesome/scripts/lockscreen +++ b/.config/awesome/scripts/lockscreen @@ -1,3 +1,3 @@ -#!/usr/bin/env sh +#!/bin/sh i3lock-fancy -t '' -- scrot; diff --git a/.config/awesome/scripts/powerdialog b/.config/awesome/scripts/powerdialog index 6b7de5a..afa5005 100755 --- a/.config/awesome/scripts/powerdialog +++ b/.config/awesome/scripts/powerdialog @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh ACTION=`zenity --width=90 --height=181 --list --radiolist --text="Select Action" --title="Logout" --column "Choice" --column "Action" TRUE Shutdown FALSE Reboot FALSE Suspend FALSE Lock` diff --git a/.config/awesome/scripts/snipping-tool b/.config/awesome/scripts/snipping-tool index bfe422e..02e8a71 100755 --- a/.config/awesome/scripts/snipping-tool +++ b/.config/awesome/scripts/snipping-tool @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh escrotum -s $HOME/Pictures/screenshots/$wx$h_%d-%m-%Y_%H_%M_%S.png; notify-send 'Screenshot . . .'; diff --git a/.config/awesome/scripts/switch-monitor b/.config/awesome/scripts/switch-monitor index 50e5530..f31efce 100755 --- a/.config/awesome/scripts/switch-monitor +++ b/.config/awesome/scripts/switch-monitor @@ -7,13 +7,13 @@ DEFAULT_OUTPUT='LVDS1' OUTPUTS='VGA1' # get info from xrandr -XRANDR=`xrandr` +XRANDR=$(xrandr) EXECUTE="" for CURRENT in $OUTPUTS do - if [[ $XRANDR == *$CURRENT\ connected* ]] # is connected + if [[ $XRANDR == *$CURRENT\ connected* ]] # is connected then if [[ $XRANDR == *$CURRENT\ connected\ \(* ]] # is disabled then diff --git a/.config/awesome/scripts/volume-down b/.config/awesome/scripts/volume-down index a3674ea..c036872 100755 --- a/.config/awesome/scripts/volume-down +++ b/.config/awesome/scripts/volume-down @@ -1,3 +1,3 @@ -#!/usr/bin/env sh +#!/bin/sh -~/.config/awesome/scripts/amixer down +$HOME/.config/awesome/scripts/amixer down diff --git a/.config/awesome/scripts/volume-mute b/.config/awesome/scripts/volume-mute index c9d42cd..f35694e 100755 --- a/.config/awesome/scripts/volume-mute +++ b/.config/awesome/scripts/volume-mute @@ -1,3 +1,3 @@ -#!/usr/bin/env sh +#!/bin/sh -~/.config/awesome/scripts/amixer mute +$HOME/.config/awesome/scripts/amixer mute diff --git a/.config/awesome/scripts/volume-up b/.config/awesome/scripts/volume-up index 275efd4..19e9822 100755 --- a/.config/awesome/scripts/volume-up +++ b/.config/awesome/scripts/volume-up @@ -1,3 +1,3 @@ -#!/usr/bin/env sh +#!/bin/sh -~/.config/awesome/scripts/amixer up +$HOME/.config/awesome/scripts/amixer up diff --git a/.config/awesome/scripts/window-switcher b/.config/awesome/scripts/window-switcher index 7cad2f1..d93ad31 100755 --- a/.config/awesome/scripts/window-switcher +++ b/.config/awesome/scripts/window-switcher @@ -1,9 +1,7 @@ -#!/usr/bin/env sh +#!/bin/sh # Copyright 2013 Tom Vincent <http://tlvince.com/contact/> - #wmctrl -l | cut -d' ' -f 1,5- | dmenu -f -i -b -p "Switch to" | cut -d' ' -f 1 | xargs wmctrl -ia # Rofi - rofi -no-disable-history -show window -theme-str '#prompt { enabled: false; }' -window-format {t} -font "ubuntu 12" -padding 15 -lines 1 |