update scripts to be nix compatible
This commit is contained in:
parent
3d2d57ddff
commit
070455ac33
4 changed files with 71 additions and 79 deletions
|
|
@ -1,4 +1,10 @@
|
|||
#!/bin/sh
|
||||
# X11 utilities -- only usable under X11 sessions
|
||||
|
||||
[ "$XDG_SESSION_TYPE" = "x11" ] || {
|
||||
echo "x: requires X11 session (current: ${XDG_SESSION_TYPE:-unknown})" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
require() {
|
||||
for cmd in "$@"; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue