diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-02-08 18:43:37 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-02-08 18:43:37 -0500 |
| commit | 2b5df860ded1412a0c0be0d140d138616e926dfc (patch) | |
| tree | 7cf2598594bfd640b61771704012c87cae154034 /.local/bin/i3cmds | |
| parent | a25e8b640ac83b6eb345977e59803e999bc42202 (diff) | |
| download | eibhear-2b5df860ded1412a0c0be0d140d138616e926dfc.tar.gz eibhear-2b5df860ded1412a0c0be0d140d138616e926dfc.tar.zst eibhear-2b5df860ded1412a0c0be0d140d138616e926dfc.zip | |
#!/bin/sh shebang. newline after universalized.
Diffstat (limited to '.local/bin/i3cmds')
| -rwxr-xr-x | .local/bin/i3cmds/ddspawn | 2 | ||||
| -rwxr-xr-x | .local/bin/i3cmds/dropdowncalc | 3 | ||||
| -rwxr-xr-x | .local/bin/i3cmds/hover | 3 | ||||
| -rwxr-xr-x | .local/bin/i3cmds/i3resize | 3 | ||||
| -rwxr-xr-x | .local/bin/i3cmds/tmuxdd | 3 |
5 files changed, 9 insertions, 5 deletions
diff --git a/.local/bin/i3cmds/ddspawn b/.local/bin/i3cmds/ddspawn index 1c4af36..d4a4034 100755 --- a/.local/bin/i3cmds/ddspawn +++ b/.local/bin/i3cmds/ddspawn @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Toggle floating dropdown terminal in i3, or start if non-existing. # $1 is the script run in the terminal. diff --git a/.local/bin/i3cmds/dropdowncalc b/.local/bin/i3cmds/dropdowncalc index 132d8e1..f0615fd 100755 --- a/.local/bin/i3cmds/dropdowncalc +++ b/.local/bin/i3cmds/dropdowncalc @@ -1,2 +1,3 @@ -#!/usr/bin/env sh +#!/bin/sh + ifinstalled bc && echo "Welcome to the Calculator." && bc -lq diff --git a/.local/bin/i3cmds/hover b/.local/bin/i3cmds/hover index d02bbbc..a8a3e19 100755 --- a/.local/bin/i3cmds/hover +++ b/.local/bin/i3cmds/hover @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + [ -z "$1" ] && exit # If $1 is left, hovers in the bottom left, if right, the bottom right current=$(xdotool getwindowfocus) newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3)) diff --git a/.local/bin/i3cmds/i3resize b/.local/bin/i3cmds/i3resize index f89bdb5..0bfb5ea 100755 --- a/.local/bin/i3cmds/i3resize +++ b/.local/bin/i3cmds/i3resize @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # This script was made by `goferito` on Github. # Some cleanup by Luke. diff --git a/.local/bin/i3cmds/tmuxdd b/.local/bin/i3cmds/tmuxdd index c8eccbb..3997240 100755 --- a/.local/bin/i3cmds/tmuxdd +++ b/.local/bin/i3cmds/tmuxdd @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # This is the script that i3 runs to either start tmux in # the dropdown terminal or log into a previous session. tmux a || tmux |
