diff --git a/.gitignore.d/i3 b/.gitignore.d/i3 index 8f02c8d..3bd0a13 100644 --- a/.gitignore.d/i3 +++ b/.gitignore.d/i3 @@ -1,4 +1,6 @@ * +!/bin +!/bin/i3-run !/.config !/.config/i3 !/.config/i3/config diff --git a/bin/i3-run b/bin/i3-run new file mode 100644 index 0000000..1baee9a --- /dev/null +++ b/bin/i3-run @@ -0,0 +1,9 @@ +#!/bin/sh + +# stolen from https://r0tty.org/git/dotfiles/i3 + +# Make i3 spawn a program, in the current working directory. This is +# useful for running GUI apps from a terminal without cluttering the +# terminal with their output. + +exec i3-msg -t command exec "cd '$(pwd)' && $@"