setups my desktop environment from a debian netinst
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
736 B

#!/usr/bin/fish
if test -z "$argv[1]"
echo "USAGE: shaderfile.frag [options]"
echo " -w width"
echo " -h height"
echo " -m pixel multiply, 0 to enable texture lerp"
echo " -x pos_x"
echo " -y pos_y"
echo " -d /path/to/video/device"
else
set first (string sub -l 1 "$argv[1]")
switch "$first"
case "~"
set ABSOLUTE "$argv[1]"
case "/"
set ABSOLUTE "$argv[1]"
case "*"
set ABSOLUTE "$PWD/$argv[1]"
end
set dotsplit (string split "." "$argv[1]")
set option ""
if test "$dotsplit[2]" = "lin"
set option "--lin"
end
exec /home/$USER/system/tools/nsketch/nsketch /home/$USER/system/tools/scriptsuite/glsl_cam/main.lua "$ABSOLUTE" $argv $option
end
exit